Dummy implementations of VI scale functions

This commit is contained in:
Mr-Wiseguy 2023-03-10 16:36:58 -05:00
parent 937c64f544
commit 9e80499197
3 changed files with 16 additions and 2 deletions

View File

@ -445,6 +445,18 @@ extern "C" void osViBlack(uint8_t active) {
vi_black = active; vi_black = active;
} }
extern "C" void osViSetXScale(float scale) {
if (scale != 1.0f) {
assert(false);
}
}
extern "C" void osViSetYScale(float scale) {
if (scale != 1.0f) {
assert(false);
}
}
extern "C" PTR(void) osViGetNextFramebuffer() { extern "C" PTR(void) osViGetNextFramebuffer() {
return events_context.vi.next_buffer; return events_context.vi.next_buffer;
} }

View File

@ -237,6 +237,8 @@ void osViSwapBuffer(RDRAM_ARG PTR(void) frameBufPtr);
void osViSetMode(RDRAM_ARG PTR(OSViMode)); void osViSetMode(RDRAM_ARG PTR(OSViMode));
void osViSetSpecialFeatures(uint32_t func); void osViSetSpecialFeatures(uint32_t func);
void osViBlack(uint8_t active); void osViBlack(uint8_t active);
void osViSetXScale(float scale);
void osViSetYScale(float scale);
PTR(void) osViGetNextFramebuffer(); PTR(void) osViGetNextFramebuffer();
PTR(void) osViGetCurrentFramebuffer(); PTR(void) osViGetCurrentFramebuffer();
u32 osGetCount(); u32 osGetCount();

View File

@ -2,11 +2,11 @@
#include "recomp.h" #include "recomp.h"
extern "C" void osViSetYScale_recomp(uint8_t* rdram, recomp_context * ctx) { extern "C" void osViSetYScale_recomp(uint8_t* rdram, recomp_context * ctx) {
assert(false); osViSetYScale(ctx->f12.fl);
} }
extern "C" void osViSetXScale_recomp(uint8_t* rdram, recomp_context * ctx) { extern "C" void osViSetXScale_recomp(uint8_t* rdram, recomp_context * ctx) {
assert(false); osViSetXScale(ctx->f12.fl);
} }
extern "C" void osCreateViManager_recomp(uint8_t* rdram, recomp_context* ctx) { extern "C" void osCreateViManager_recomp(uint8_t* rdram, recomp_context* ctx) {