Revert part of previous patch
Checking only the visible resolution and colorspace isn't enough to call two modes equal, otherwise it is not possible to change the refresh rate anymore.
This commit is contained in:
@@ -789,12 +789,9 @@ intel_set_display_mode(display_mode* mode)
|
|||||||
uint32 colorMode, bytesPerRow, bitsPerPixel;
|
uint32 colorMode, bytesPerRow, bitsPerPixel;
|
||||||
get_color_space_format(target, colorMode, bytesPerRow, bitsPerPixel);
|
get_color_space_format(target, colorMode, bytesPerRow, bitsPerPixel);
|
||||||
|
|
||||||
// avoid screen being off when switching workspaces when they have the same
|
// TODO stop here, when the requested mode is the same as the current one.
|
||||||
// resolution.
|
// This would avoid screen flickering when setting a mode that's already in
|
||||||
if (target.virtual_width == display_mode_hook.mode.width
|
// place.
|
||||||
&& target.virtual_height == display_mode_hook.mode.height
|
|
||||||
&& target.space == display_mode_hook.mode.space)
|
|
||||||
return B_OK;
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static bool first = tru;
|
static bool first = tru;
|
||||||
|
|||||||
Reference in New Issue
Block a user