From 808c87bff710263f5a7b3c12a7e7fec54672fecd Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 25 Mar 2013 14:51:58 +1000 Subject: [PATCH] Revert "kdrive: fix "set but not used" warnings" Partial revert of commit 4149ee8ec0193acbf3812c7ee2627b93b9a89997, better fix coming up. Signed-off-by: Peter Hutterer --- hw/kdrive/fbdev/fbdev.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c index fb6e3a292..fd14afa92 100644 --- a/hw/kdrive/fbdev/fbdev.c +++ b/hw/kdrive/fbdev/fbdev.c @@ -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);