mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 07:00:07 +01:00
Revert "kdrive: fix "set but not used" warnings"
Partial revert of commit 4149ee8ec0, better
fix coming up.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ac4c2abe98
commit
808c87bff7
1 changed files with 10 additions and 0 deletions
|
|
@ -465,6 +465,16 @@ fbdevRandRSetConfig(ScreenPtr pScreen,
|
|||
int oldheight;
|
||||
int oldmmwidth;
|
||||
int oldmmheight;
|
||||
int newwidth, newheight;
|
||||
|
||||
if (screen->randr & (RR_Rotate_0 | RR_Rotate_180)) {
|
||||
newwidth = pSize->width;
|
||||
newheight = pSize->height;
|
||||
}
|
||||
else {
|
||||
newwidth = pSize->height;
|
||||
newheight = pSize->width;
|
||||
}
|
||||
|
||||
if (wasEnabled)
|
||||
KdDisableScreen(pScreen);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue