소스 검색

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;
 }