Implemented Win32 version of the native window test
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403524
This commit is contained in:
parent
408d9f3ed8
commit
1e44bc512b
2 changed files with 50 additions and 4 deletions
|
@ -29,7 +29,7 @@ quit(int rc)
|
|||
{
|
||||
SDL_VideoQuit();
|
||||
if (native_window) {
|
||||
factory->DestroyWindow(native_window);
|
||||
factory->DestroyNativeWindow(native_window);
|
||||
}
|
||||
exit(rc);
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ main(int argc, char *argv[])
|
|||
quit(2);
|
||||
}
|
||||
printf("Creating native window for %s driver\n", driver);
|
||||
native_window = factory->CreateWindow(WINDOW_W, WINDOW_H);
|
||||
native_window = factory->CreateNativeWindow(WINDOW_W, WINDOW_H);
|
||||
if (!native_window) {
|
||||
fprintf(stderr, "Couldn't create native window\n");
|
||||
quit(3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue