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:
parent
78e75012ba
commit
9902110033
|
@ -256,7 +256,6 @@ public final class Display {
|
|||
initControls();
|
||||
setVSyncEnabled(vsync);
|
||||
window_created = true;
|
||||
update();
|
||||
}
|
||||
|
||||
private static void destroyWindow() {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue