mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-06 10:21:57 +08:00
set dirty_rc empty initially
This commit is contained in:
@@ -267,7 +267,7 @@ static int FB_EnterGraphicsMode (_THIS)
|
||||
if (ioctl (ttyfd, KDSETMODE, KD_GRAPHICS) == -1) {
|
||||
_WRN_PRINTF ("Error when setting the terminal (%s) "
|
||||
"to graphics mode: %m\n", tty_dev);
|
||||
_WRN_PRINTF ("It might is not a console.\n");
|
||||
_WRN_PRINTF ("It might not be a console.\n");
|
||||
goto fail;
|
||||
}
|
||||
#ifdef _MGRM_PROCESSES
|
||||
@@ -797,7 +797,7 @@ static GAL_Surface *FB_SetVideoMode(_THIS, GAL_Surface *current,
|
||||
dblbuff = TRUE;
|
||||
}
|
||||
}
|
||||
#endif /* _MGSCHEMA_COMPOSITING */
|
||||
#endif /* !IS_SHAREDFB_SCHEMA_PROC */
|
||||
|
||||
if (dblbuff) {
|
||||
/* create shadow screen */
|
||||
@@ -823,6 +823,7 @@ static GAL_Surface *FB_SetVideoMode(_THIS, GAL_Surface *current,
|
||||
GAL_SetClipRect (this->hidden->real_screen, NULL);
|
||||
GAL_SetColorKey (this->hidden->shadow_screen, 0, 0);
|
||||
GAL_SetAlpha (this->hidden->shadow_screen, 0, 0);
|
||||
SetRectEmpty (&this->hidden->dirty_rc);
|
||||
}
|
||||
else {
|
||||
this->hidden->real_screen = NULL;
|
||||
|
||||
@@ -81,7 +81,7 @@ struct GAL_PrivateVideoData {
|
||||
GAL_Surface *real_screen, *shadow_screen;
|
||||
RECT dirty_rc;
|
||||
|
||||
#if IS_COMPOSITING_SCHEMA
|
||||
#ifdef _MGSCHEMA_COMPOSITING
|
||||
/* Used to simulate the hardware cursor. */
|
||||
GAL_Surface *cursor;
|
||||
int csr_x, csr_y;
|
||||
|
||||
Reference in New Issue
Block a user