Removed update() from Display.createWindow() as it caused garbage to appear as the first frame. Added a black background brush t win32 window class

This commit is contained in:
Elias Naur 2005-05-06 09:40:36 +00:00
parent 78e75012ba
commit 9902110033
2 changed files with 1 additions and 2 deletions

View File

@ -256,7 +256,6 @@ public final class Display {
initControls();
setVSyncEnabled(vsync);
window_created = true;
update();
}
private static void destroyWindow() {

View File

@ -63,7 +63,7 @@ bool registerWindow(WNDPROC win_proc, LPCTSTR class_name)
windowClass.hInstance = dll_handle;
windowClass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
windowClass.hCursor = LoadCursor(NULL, IDC_ARROW);
windowClass.hbrBackground = NULL;
windowClass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
windowClass.lpszMenuName = NULL;
windowClass.lpszClassName = class_name;