X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d46359178b28cd86e189e877015a8e69ff5bbaa..eeb6bb3493dc28680b3801959dc719bd62be147a:/src/mac/carbon/display.cpp?ds=inline 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;