changeset 22025:8f9d757af58e

10l: screen_height calculation was using an uninitialized variable
author faust3
date Sun, 28 Jan 2007 14:48:14 +0000
parents 4139d35bf255
children cac6e3b0d2e5
files vidix/drivers/sis_vid.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/sis_vid.c	Sun Jan 28 13:51:24 2007 +0000
+++ b/vidix/drivers/sis_vid.c	Sun Jan 28 14:48:14 2007 +0000
@@ -365,7 +365,7 @@
     inSISIDXREG(SISCR, 0x07, cr_data2);
     sis_screen_height =
 	((cr_data & 0xff) | ((uint16_t) (cr_data2 & 0x02) << 7) |
-	 ((uint16_t) (cr_data2 & 0x40) << 3) | ((uint16_t) (sr_data & 0x02)
+	 ((uint16_t) (cr_data2 & 0x40) << 3) | ((uint16_t) (cr_data & 0x02)
 						<< 9)) + 1;
 
     inSISIDXREG(SISSR, 0x0b, sr_data);