Use original erasing code by default

Checkered background can be enabled when needed for debugging. Otherwise
it is used for all datatypes also for text which looks wrong.
This commit is contained in:
deadwood 2022-07-21 13:31:20 +02:00
parent 0442ca8f07
commit 84313d33e3
1 changed files with 9 additions and 4 deletions

View File

@ -649,10 +649,8 @@ void AddDTOToWin(void)
{
D(bug("[MultiView] %s()\n", __func__));
/* FIXME: this should probably go to window backfill hook, because this is not refreshed
at change of window size currently */
/* fill the background */
#if (0)
/* add checkered background to see transparency in images */
ULONG drawwidth = win->Width - 1 - win->BorderRight - win->BorderLeft;
ULONG drawheight = win->Height - 1 - win->BorderBottom - win->BorderTop;
ULONG drawoffsetx = win->BorderLeft;
@ -679,6 +677,13 @@ void AddDTOToWin(void)
RectFill(win->RPort, drawoffsetx + x, drawoffsety + y, drawoffsetx + x + fillw, drawoffsety + y + fillh);
}
}
#else
EraseRect(win->RPort, win->BorderLeft,
win->BorderTop,
win->Width - 1 - win->BorderRight,
win->Height - 1 - win->BorderBottom);
#endif
SetDTAttrs (dto, NULL, NULL, GA_Left , win->BorderLeft + 2 ,
GA_Top , win->BorderTop + 2 ,