Skip to content

Commit

Permalink
Clearing 2D surface on XRuntimeObject change
Browse files Browse the repository at this point in the history
  • Loading branch information
lpenguin committed Aug 15, 2020
1 parent 6faffb8 commit 334b06e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/xtool/xtcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ int main(int argc, char *argv[])


while(XObj){
XGR_Obj.set_render_buffer(XGR_Obj.XGR_ScreenSurface2D);
XGR_Obj.fill(0);
XGR_Obj.set_render_buffer(XGR_Obj.XGR_ScreenSurface);
XObj -> Init(prevID);
prevID = id;
id = 0;
Expand Down
1 change: 1 addition & 0 deletions src/road.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,7 @@ _MEM_STATISTIC_("AFTER FIRST ESCAVE FINIT -> ");
void GameQuantRTO::Init(int id)
{
vMap -> lockHeap();
aScrDisp -> flags &= ~AS_FULL_REDRAW;
_MEM_STATISTIC_("AFTER GAME QUANT INIT -> ");
}

Expand Down

0 comments on commit 334b06e

Please sign in to comment.