make sure STKM / other particle graphics aren't drawn over the menus

This commit is contained in:
jacob1 2017-06-13 10:00:35 -04:00
parent 694bc6a9cb
commit d8edb3c2e0

View File

@ -2470,6 +2470,10 @@ void GameView::OnDraw()
g->fillrect(0, 0, WINDOWW, WINDOWH, 0, 0, 0, introText>51?102:introText*2);
g->drawtext(16, 20, (char*)introTextMessage.c_str(), 255, 255, 255, introText>51?255:introText*5);
}
// Clear menu areas, to ensure particle graphics don't overlap
memset(g->vid+((XRES+BARSIZE)*YRES), 0, (PIXELSIZE*(XRES+BARSIZE))*MENUSIZE);
g->clearrect(XRES, 1, BARSIZE, YRES-1);
}
ui::Point GameView::lineSnapCoords(ui::Point point1, ui::Point point2)