Minor changes with UpdateVFrame

This commit is contained in:
hpsolo
2001-06-04 04:12:45 +00:00
parent 6bfe7fcf77
commit 917506854f
3 changed files with 11 additions and 7 deletions

View File

@@ -33,8 +33,10 @@ extern Uint8 FilteredGUI;
extern Uint8 GUIOn2; extern Uint8 GUIOn2;
extern unsigned int vidbuffer; extern unsigned int vidbuffer;
extern unsigned char curblank;
void gl_clearwin(); void gl_clearwin();
void UpdateVFrame(void);
int gl_start(int width, int height, int req_depth, int FullScreen) int gl_start(int width, int height, int req_depth, int FullScreen)
{ {
@@ -256,6 +258,9 @@ void gl_drawwin()
// the value of newengen is equal to 1. // the value of newengen is equal to 1.
// (see ProcessTransparencies in newgfx16.asm // (see ProcessTransparencies in newgfx16.asm
// for ZSNES' current transparency code) // for ZSNES' current transparency code)
UpdateVFrame();
if (curblank != 0)
return;
LockSurface(); LockSurface();

View File

@@ -865,7 +865,6 @@ void UpdateSound(void *userdata, Uint8 * stream, int len)
void UpdateVFrame(void) void UpdateVFrame(void)
{ {
Main_Proc(); Main_Proc();
// WinUpdateDevices(); removed since it is an empty function
CheckTimers(); CheckTimers();
} }
@@ -879,14 +878,8 @@ void clearwin()
sw_clearwin(); sw_clearwin();
} }
extern unsigned char curblank;
void drawscreenwin(void) void drawscreenwin(void)
{ {
UpdateVFrame();
if (curblank != 0)
return;
#ifdef __OPENGL__ #ifdef __OPENGL__
if (UseOpenGL) if (UseOpenGL)
gl_drawwin(); gl_drawwin();

View File

@@ -22,6 +22,8 @@ extern void LinuxExit();
extern unsigned int vidbuffer; extern unsigned int vidbuffer;
extern DWORD converta; extern DWORD converta;
extern unsigned int BitConv32Ptr; extern unsigned int BitConv32Ptr;
extern unsigned char curblank;
void UpdateVFrame(void);
BOOL sw_start(int width, int height, int req_depth, int FullScreen) BOOL sw_start(int width, int height, int req_depth, int FullScreen)
{ {
@@ -164,6 +166,10 @@ void sw_drawwin()
// the value of newengen is equal to 1. // the value of newengen is equal to 1.
// (see ProcessTransparencies in newgfx16.asm // (see ProcessTransparencies in newgfx16.asm
// for ZSNES' current transparency code) // for ZSNES' current transparency code)
UpdateVFrame();
if (curblank != 0)
return;
LockSurface(); LockSurface();
ScreenPtr = vidbuffer; ScreenPtr = vidbuffer;