Test C window should be 640x480 not 320x320

This commit is contained in:
UnknownShadow200 2017-08-19 22:10:44 +10:00
parent 61f22c1fb3
commit e84cd9ebe3
2 changed files with 5 additions and 2 deletions

View File

@ -9,12 +9,15 @@ int main(int argc, char* argv[]) {
Platform_Init(); Platform_Init();
String str = String_FromConstant("TEST"); String str = String_FromConstant("TEST");
Window_Create(320, 320, 320, 320, &str, NULL); Window_Create(320, 320, 640, 480, &str, NULL);
Window_SetVisible(true); Window_SetVisible(true);
Gfx_Init(); Gfx_Init();
while (true) { while (true) {
Window_ProcessEvents(); Window_ProcessEvents();
Platform_ThreadSleep(100); Platform_ThreadSleep(100);
Gfx_BeginFrame();
Gfx_EndFrame();
} }
Gfx_Free();
return 0; return 0;
} }

View File

@ -69,7 +69,7 @@ void Window_SetVisible(bool visible);
/* Gets whether this window has been created and has not been destroyed. */ /* Gets whether this window has been created and has not been destroyed. */
bool Window_GetExists(void); bool Window_GetExists(void);
/* TODO: IMPLEMENT THIS */ /* Gets the handle of this window. */
void* Window_GetWindowHandle(void); void* Window_GetWindowHandle(void);
/* Gets the WindowState of this window. */ /* Gets the WindowState of this window. */