Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- commandergenius/project/jni/application/src/sgp/Video.cc 2011-09-20 14:55:30.717810586 +0400
- +++ commandergenius/project/jni/application/src/sgp/Video.cc 2011-09-20 15:00:11.444791671 +0400
- @@ -532,8 +532,8 @@
- void RefreshScreen(void)
- {
- // ANDROID DEBUG DEBUG: always force full redraw
- - gfForceFullScreenRefresh = TRUE;
- -
- + //gfForceFullScreenRefresh = FALSE;
- +
- if (guiVideoManagerState != VIDEO_ON) return;
- SDL_BlitSurface(FrameBuffer, &MouseBackground, ScreenBuffer, &MouseBackground);
- @@ -611,31 +611,31 @@
- dst.x = MousePos.iX - gsMouseCursorXOffset;
- dst.y = MousePos.iY - gsMouseCursorYOffset;
- SDL_BlitSurface(MouseCursor, &src, ScreenBuffer, &dst);
- - SDL_UpdateRects(ScreenBuffer, 1, &dst);
- +// SDL_UpdateRects(ScreenBuffer, 1, &dst);
- SDL_UpdateRects(ScreenBuffer, 1, &MouseBackground);
- MouseBackground = dst;
- - if (gfForceFullScreenRefresh)
- - {
- - SDL_UpdateRect(ScreenBuffer, 0, 0, 0, 0);
- - }
- - else
- - {
- - SDL_UpdateRects(ScreenBuffer, guiDirtyRegionCount, DirtyRegions);
- -
- - for (UINT32 i = 0; i < guiDirtyRegionExCount; i++)
- - {
- - SDL_Rect* r = &DirtyRegionsEx[i];
- - if (scrolling)
- - {
- - if (r->y <= gsVIEWPORT_WINDOW_END_Y && r->y + r->h <= gsVIEWPORT_WINDOW_END_Y)
- - {
- - continue;
- - }
- - }
- - SDL_UpdateRects(ScreenBuffer, 1, r);
- - }
- - }
- +// if (gfForceFullScreenRefresh)
- +// {
- +// SDL_UpdateRect(ScreenBuffer, 0, 0, 0, 0);
- +// }
- +// else
- +// {
- +// SDL_UpdateRects(ScreenBuffer, guiDirtyRegionCount, DirtyRegions);
- +//
- +// for (UINT32 i = 0; i < guiDirtyRegionExCount; i++)
- +// {
- +// SDL_Rect* r = &DirtyRegionsEx[i];
- +// if (scrolling)
- +// {
- +// if (r->y <= gsVIEWPORT_WINDOW_END_Y && r->y + r->h <= gsVIEWPORT_WINDOW_END_Y)
- +// {
- +// continue;
- +// }
- +// }
- +// SDL_UpdateRects(ScreenBuffer, 1, r);
- +// }
- +// }
- gfForceFullScreenRefresh = FALSE;
- guiDirtyRegionCount = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement