diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -400,7 +400,7 @@ bool VideoDriver_Cocoa::ChangeResolution { assert(_cocoa_subdriver != NULL); - bool ret = _cocoa_subdriver->ChangeResolution(w, h); + bool ret = _cocoa_subdriver->ChangeResolution(w, h, BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth()); QZ_GameSizeChanged(); QZ_UpdateVideoModes(); @@ -444,6 +444,16 @@ bool VideoDriver_Cocoa::ToggleFullscreen } /** + * Callback invoked after the blitter was changed. + * + * @return True if no error. + */ +bool VideoDriver_Cocoa::AfterBlitterChange() +{ + return this->ChangeResolution(_screen.width, _screen.height); +} + +/** * Catch asserts prior to initialization of the videodriver. * * @param title Window title.