Permalink
Browse files

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

  • Loading branch information...
jacob1 committed Jun 13, 2017
1 parent 694bc6a commit d8edb3c2e06ddd45e64c081c84146548d968e5d2
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/game/GameView.cpp
@@ -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)

0 comments on commit d8edb3c

Please sign in to comment.