mirror of
https://github.com/jenshemprich/MacGLide.git
synced 2024-09-27 10:55:07 +00:00
Minor improvements in gamma bias error handling
This commit is contained in:
parent
d32852ae89
commit
717a5bd03c
@ -395,14 +395,15 @@ OSErr DisplayManager_RememberPassthroughDisplay()
|
||||
PassthroughDisplay.HorizontalPixels, PassthroughDisplay.VerticalLines,
|
||||
PassthroughDisplay.ColorDepth, PassthroughDisplay.RefreshRate);
|
||||
#endif
|
||||
if (DisplayManager_RememberGamma(PassthroughDisplay) == noErr)
|
||||
err = DisplayManager_RememberGamma(PassthroughDisplay) ;
|
||||
if (err == noErr)
|
||||
{
|
||||
PassthroughDisplay.GammaValid = true;
|
||||
}
|
||||
// Remember menubar status
|
||||
RestoreMenuBar = IsMenuBarVisible();
|
||||
}
|
||||
else
|
||||
if (err != noErr)
|
||||
{
|
||||
GlideMsg("Display Manager: Error while remembering passthrough display mode: %d\n", err);
|
||||
}
|
||||
@ -529,9 +530,12 @@ OSErr DisplayManager_RestorePassthroughDisplay()
|
||||
if (err == noErr)
|
||||
{
|
||||
if (RestoreMenuBar) ShowMenuBar();
|
||||
if (PassthroughDisplay.GammaValid == true) DisplayManager_RestoreGamma(PassthroughDisplay);
|
||||
if (PassthroughDisplay.GammaValid == true)
|
||||
{
|
||||
err = DisplayManager_RestoreGamma(PassthroughDisplay);
|
||||
}
|
||||
}
|
||||
else
|
||||
if (err != noErr)
|
||||
{
|
||||
GlideMsg("Display Manager: Error while restoring passthrough display mode: %d\n", err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user