Linux: Added missing throwException in display.cpp.initDisplay()
This commit is contained in:
parent
a558ad68b2
commit
0d4d5b6bf1
|
@ -141,7 +141,8 @@ jobject initDisplay(JNIEnv *env) {
|
|||
screen = DefaultScreen(disp);
|
||||
|
||||
if (!getDisplayModes(disp, screen, &num_modes, &avail_modes)) {
|
||||
printfDebug("Could not get display modes\n");
|
||||
throwException(env, "Could not get display modes");
|
||||
return NULL;
|
||||
}
|
||||
saved_width = avail_modes[0]->hdisplay;
|
||||
saved_height = avail_modes[0]->vdisplay;
|
||||
|
|
Loading…
Reference in New Issue