mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
That's a weird way to check versions. Won't even work for 7.0.
This commit is contained in:
parent
a55fe0eb6b
commit
d7dbc45c6b
@ -569,7 +569,7 @@ bool win32_suppress_screensaver(void *data, bool enable)
|
||||
|
||||
frontend->get_os(tmp, sizeof(tmp), &major, &minor);
|
||||
|
||||
if (major >= 6 && minor >= 1)
|
||||
if (major*100+minor >= 601)
|
||||
{
|
||||
/* Windows 7, 8, 10 codepath */
|
||||
typedef HANDLE (WINAPI * PowerCreateRequestPtr)(REASON_CONTEXT *context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user