[GPU] Fix internal_display_resolution condition

This commit is contained in:
Margen67 2024-10-18 12:46:34 -07:00
parent d2921a09eb
commit 6c0f026824
1 changed files with 23 additions and 23 deletions

View File

@ -30,9 +30,9 @@
#include "xenia/ui/window.h"
#include "xenia/ui/windowed_app_context.h"
DEFINE_int32(internal_display_resolution, 8,
"Allow game that support different resolutions to be rendered "
"in specific resolution.\n"
DEFINE_uint32(internal_display_resolution, 8,
"Allow games that support different resolutions to render "
"in a specific resolution.\n"
" 0=640x480\n"
" 1=640x576\n"
" 2=720x480\n"
@ -406,7 +406,7 @@ bool GraphicsSystem::Restore(ByteStream* stream) {
}
std::pair<uint16_t, uint16_t> GraphicsSystem::GetInternalDisplayResolution() {
if (cvars::internal_display_resolution >
if (cvars::internal_display_resolution >=
internal_display_resolution_entries.size()) {
return internal_display_resolution_entries[8];
}