kdrive: handle WxH as valid geometry spec
If a screen size was specified as WxH, the loop returned early and kdOrigin was never advanced. Thus, screen->origin was always 0 (or whatever was given at the -origin commandline flag). If a screen size was given with a bit depth (WxHxD), kdOrigin would always advance by the current screen, offsetting the next screen. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c8c5105c1d
commit
d66832a3b8
|
@ -328,7 +328,8 @@ KdParseScreen(KdScreenInfo * screen, const char *arg)
|
|||
screen->height = pixels;
|
||||
screen->height_mm = mm;
|
||||
}
|
||||
if (delim != 'x' && delim != '@' && delim != 'X' && delim != 'Y')
|
||||
if (delim != 'x' && delim != '@' && delim != 'X' && delim != 'Y' &&
|
||||
(delim != '\0' || i == 0))
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue