فهرست منبع

Fixed missing error message if SDL_GetDisplayDPI() is unsupported.

Philipp Wiesemann 9 سال پیش
والد
کامیت
bf7a76155e
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/video/SDL_video.c

+ 3 - 1
src/video/SDL_video.c

@@ -719,7 +719,9 @@ SDL_GetDisplayDPI(int displayIndex, float * ddpi, float * hdpi, float * vdpi)
 		if (_this->GetDisplayDPI(_this, display, ddpi, hdpi, vdpi) == 0) {
 			return 0;
 		}
-	}
+    } else {
+        return SDL_Unsupported();
+    }
 
 	return -1;
 }