1
0
mirror of https://github.com/blawar/ooot.git synced 2024-06-30 16:29:55 +00:00

added gfx_ar call

This commit is contained in:
Blake Warner 2022-02-18 20:34:20 -05:00
parent 5d48166b07
commit 41bd8fe0d1
3 changed files with 10 additions and 32 deletions

View File

@ -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())

View File

@ -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);

View File

@ -1,32 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<buildrom>EUR_MQD</buildrom>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);../include;../src;../assets/$(buildrom)/;../build;../;../external/include;%(IncludePath)</IncludePath>
<LibraryPath>$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);../external/Win32;%(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
<PreprocessorDefinitions>ENABLE_20FPS;ENABLE_MOUSE;EUR_MQD;NATIVE;OS_WINDOWS;_LANGUAGE_C;ENABLE_OPENGL;USE_NATIVE_MALLOC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpplatest</LanguageStandard>
<ObjectFileName>$(IntDir)</ObjectFileName>
<DisableSpecificWarnings>4146</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<SDLCheck>false</SDLCheck>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>
<BuildMacro Include="buildrom">
<Value>$(buildrom)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
</ItemGroup>
</Project>