X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d46359178b28cd86e189e877015a8e69ff5bbaa..f7d2128f3c89b2d00fbac0d8c9798409ae23b408:/src/mac/carbon/display.cpp?ds=sidebyside diff --git a/src/mac/carbon/display.cpp b/src/mac/carbon/display.cpp index 99c51f04ce..d8159cb352 100644 --- a/src/mac/carbon/display.cpp +++ b/src/mac/carbon/display.cpp @@ -229,10 +229,10 @@ bool wxDisplayImplMacOSX::ChangeMode( const wxVideoMode& mode ) boolean_t bExactMatch; CFDictionaryRef theCGMode = CGDisplayBestModeForParametersAndRefreshRate( m_id, - (size_t)mode.bpp, - (size_t)mode.w, - (size_t)mode.h, - (double)mode.refresh, + (size_t)mode.GetDepth(), + (size_t)mode.GetWidth(), + (size_t)mode.GetHeight(), + (double)mode.GetRefresh(), &bExactMatch ); bool bOK = bExactMatch;