mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
Added initialisation of paging screens when the game starts
svn-id: r42370
This commit is contained in:
parent
99d81ac2ed
commit
2c96ca84f3
@ -118,6 +118,7 @@ void CruiseEngine::initialize() {
|
||||
// video init stuff
|
||||
|
||||
initSystem();
|
||||
gfxModuleData_Init();
|
||||
|
||||
// another bit of video init
|
||||
|
||||
|
@ -217,6 +217,12 @@ void gfxCopyRect(const uint8 *sourceBuffer, int width, int height, byte *dest, i
|
||||
}
|
||||
}
|
||||
|
||||
void gfxModuleData_Init(void) {
|
||||
memset(globalScreen, 0, 320 * 200);
|
||||
memset(page00, 0, 320 * 200);
|
||||
memset(page10, 0, 320 * 200);
|
||||
}
|
||||
|
||||
void gfxModuleData_flipScreen(void) {
|
||||
memcpy(globalScreen, gfxModuleData.pPage00, 320 * 200);
|
||||
|
||||
|
@ -56,6 +56,7 @@ void gfxCopyRect(const uint8 *sourceBuffer, int width, int height, byte *dest, i
|
||||
void gfxModuleData_gfxCopyScreen(const uint8 *sourcePtr, uint8 *destPtr);
|
||||
void convertGfxFromMode4(const uint8 *sourcePtr, int width, int height, uint8 *destPtr);
|
||||
void convertGfxFromMode5(const uint8 *sourcePtr, int width, int height, uint8 *destPtr);
|
||||
void gfxModuleData_Init(void);
|
||||
void gfxModuleData_flipScreen(void);
|
||||
//void gfxModuleData_setPal(uint8 * ptr);
|
||||
void gfxModuleData_convertOldPalColor(uint16 oldColor, uint8 *pOutput);
|
||||
|
Loading…
x
Reference in New Issue
Block a user