diff --git a/include/gfx_align.h b/include/gfx_align.h index 8986a5bb8..e9c3ef2a4 100644 --- a/include/gfx_align.h +++ b/include/gfx_align.h @@ -2,6 +2,7 @@ extern "C" { u64 gfx_width(); u64 gfx_height(); + float gfx_ar(); float gfx_ar_ratio(); } #define GFX_DIMENSIONS_ASPECT_RATIO ((float)gfx_width() / (float)gfx_height()) diff --git a/src/port/pc_main.cpp b/src/port/pc_main.cpp index eb2cf1572..1c04c9373 100644 --- a/src/port/pc_main.cpp +++ b/src/port/pc_main.cpp @@ -402,6 +402,15 @@ extern "C" { return 1.0f; } + float gfx_ar() + { + if(gWindow) + { + return gWindow->ar(); + } + return 1.0f; + } + void set_fullscreen(bool value) { gWindow->set_fullscreen(value, false); diff --git a/vs/oot.props b/vs/oot.props deleted file mode 100644 index b775a6282..000000000 --- a/vs/oot.props +++ /dev/null @@ -1,32 +0,0 @@ - - - - - EUR_MQD - - - Application - $(DefaultPlatformToolset) - Unicode - $(VC_IncludePath);$(WindowsSDK_IncludePath);../include;../src;../assets/$(buildrom)/;../build;../;../external/include;%(IncludePath) - $(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);../external/Win32;%(LibraryPath) - - - - TurnOffAllWarnings - ENABLE_20FPS;ENABLE_MOUSE;EUR_MQD;NATIVE;OS_WINDOWS;_LANGUAGE_C;ENABLE_OPENGL;USE_NATIVE_MALLOC;%(PreprocessorDefinitions) - true - stdcpplatest - $(IntDir) - 4146 - true - false - - - - - $(buildrom) - true - - - \ No newline at end of file