Ryujinx-SDL/premake/projects
Sam Lantinga 059579e48f Fixed bug 2696 - Mac: fix display mode refresh rate calculation
Alex Szpakowski

SDL's Cocoa backend uses the CGDisplayMode API to get refresh rate information about a display mode, but CGDisplayModeGetRefreshRate will return 0 on most non-CRT monitors.

The only way I know of to get correct refresh rate information in OS X is via the CoreVideo DisplayLink API.
I have attached a patch which tries to use the CVDisplayLinkGetNominalOutputVideoRefreshPeriod function if CGDisplayModeGetRefreshRate fails, which fixes display mode refresh rate information on the monitors I tested.

The CVDisplayLink API requires linking with the CoreVideo framework, and the patch updates the various build files to do so.
2014-08-23 10:47:50 -07:00
..
accelerometer.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
checkkeys.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
fireworks.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
happy.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
keyboard.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
loopwave.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
mixer.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
rectangles.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL2.lua Fixed bug 2696 - Mac: fix display mode refresh rate calculation 2014-08-23 10:47:50 -07:00
SDL2main.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL2test.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testatomic.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testaudioinfo.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testautomation.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testdraw2.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testdrawchessboard.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testerror.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testfile.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testfilesystem.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testgamecontroller.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testgesture.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testgl2.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testgles.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testhaptic.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testiconv.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testime.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testintersection.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testjoystick.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testkeys.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testloadso.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testlock.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testmessage.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testmultiaudio.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testnative.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testoverlay2.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testplatform.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testpower.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testrelative.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testrendercopyex.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testrendertarget.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testresample.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testrumble.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testscale.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testsem.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testshader.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testshape.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testsprite2.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testspriteminimal.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
teststreaming.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testthread.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testtimer.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testver.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
testwm2.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
torturethread.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
touch.lua Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00