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
|
@ -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…
Reference in New Issue
Block a user