void DrawBackground() { using (FastBitmap dst = new FastBitmap(game.Framebuffer, true)) { game.ClearArea(0, 0, game.Width, tableY, dst); int tableHeight = Math.Max(game.Height - tableY - 50, 1); Rectangle rec = new Rectangle(tableX, tableY, game.Width - tableX, tableHeight); if (!game.ClassicMode) { FastColour col = LauncherTableWidget.backGridCol; Drawer2DExt.FastClear(dst, rec, col); } else { game.ClearArea(rec.X, rec.Y, rec.Width, rec.Height, dst); } } }
public void RedrawBackground(FastBitmap dst) { if (Window.Minimised) { return; } Rectangle rect = new Rectangle(X + border, Y + border, Width - border * 2, Height - border * 2); if (Window.ClassicMode) { FastColour foreCol = Active ? new FastColour(126, 136, 191) : new FastColour(111, 111, 111); Drawer2DExt.DrawNoise(dst, rect, foreCol, 8); } else { FastColour foreCol = Active ? LauncherSkin.ButtonForeActiveCol : LauncherSkin.ButtonForeCol; Drawer2DExt.FastClear(dst, rect, foreCol); } }