mirror of
https://github.com/gopher64/gopher64.git
synced 2026-10-31 19:47:19 +01:00
High DPI scaling fixes (#1215)
* dpi fixes * fonts * more fonts * resizeable * more * more * more
This commit is contained in:
1 parent
5de5f1179f
commit
0bb9fbba63
3 files changed
+24
-7
No files matched your search
@@ -34,13 +34,13 @@ std::vector<const char *> SDL_WSIPlatform::get_instance_extensions() {
|
||||
|
||||
uint32_t SDL_WSIPlatform::get_surface_width() {
|
||||
int w, h;
|
||||
SDL_GetWindowSize(window, &w, &h);
|
||||
SDL_GetWindowSizeInPixels(window, &w, &h);
|
||||
return w;
|
||||
}
|
||||
|
||||
uint32_t SDL_WSIPlatform::get_surface_height() {
|
||||
int w, h;
|
||||
SDL_GetWindowSize(window, &w, &h);
|
||||
SDL_GetWindowSizeInPixels(window, &w, &h);
|
||||
return h;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user