mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 14:49:22 +00:00
Merge pull request #20 from camdenorrb/force-60-plus-fps
Add aspect ratio
This commit is contained in:
commit
2707fbe643
1 changed files with 10 additions and 4 deletions
|
@ -96,9 +96,15 @@ VkSurfaceKHR SwapChain::CreateVulkanSurface(VkInstance instance, VkPhysicalDevic
|
|||
for (int i = 0; i < mode_count; ++i)
|
||||
{
|
||||
const VkDisplayModeParametersKHR* params = &all_mode_props_vector[i].parameters;
|
||||
printf("Mode %d: %d x %d (%.2f fps)\n", i,
|
||||
params->visibleRegion.width, params->visibleRegion.height,
|
||||
static_cast<float>(params->refreshRate) / 1000.0f);
|
||||
int width = params->visibleRegion.width;
|
||||
int height = params->visibleRegion.height;
|
||||
float aspect_ratio = static_cast<float>(width) / static_cast<float>(height);
|
||||
|
||||
printf("Mode %d: %d x %d (%.2f fps, %.2f:1 aspect ratio)\n", i,
|
||||
width, height,
|
||||
static_cast<float>(params->refreshRate) / 1000.0f,
|
||||
aspect_ratio);
|
||||
|
||||
}
|
||||
|
||||
for (int i = 0; i < mode_count; ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue