diff --git a/source/Platform/Unix/UnixMisc.cpp b/source/Platform/Unix/UnixMisc.cpp index fd557f2..10bace4 100644 --- a/source/Platform/Unix/UnixMisc.cpp +++ b/source/Platform/Unix/UnixMisc.cpp @@ -24,7 +24,7 @@ void PlatformMisc::GetDisplayModes(std::vector& modes) XRRScreenConfiguration* config = ::XRRGetScreenInfo(disp, RootWindow(disp, scr)); if (config) { int nbSizes; - XRRScreenSize* sizes = ::XRRConfigSizes(config, &nbSizes); + XRRScreenSize* sizes = ::XRRConfigSizes(config, &nbSizes); if (sizes && nbSizes > 0) { int nbDepths = 0; int* depths = ::XListDepths(disp, scr, &nbDepths); @@ -82,7 +82,7 @@ DisplayMode PlatformMisc::GetDesktopMode() ::Rotation rot; int current = XRRConfigCurrentConfiguration(config, &rot); - XRRScreenSize* sizes = ::XRRConfigSizes(config, &nbSizes); + XRRScreenSize* sizes = ::XRRConfigSizes(config, &nbSizes); if (sizes && nbSizes > 0) { mode = DisplayMode(sizes[current].width, sizes[current].height, DefaultDepth(disp, scr));