From: Jack Lange Date: Thu, 27 Aug 2009 17:50:12 +0000 (-0500) Subject: added variable warning X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=0e232390dba4ac9732d934315688ecb99effe4f8 added variable warning --- diff --git a/palacios/src/devices/cga.c b/palacios/src/devices/cga.c index aabe810..567a50c 100644 --- a/palacios/src/devices/cga.c +++ b/palacios/src/devices/cga.c @@ -58,9 +58,11 @@ struct video_internal { uint8_t crtc_index_reg; // io port 3D4 uint8_t crtc_data_regs[25]; // io port 3D5 - + + /* IMPORTANT: These are column offsets _NOT_ byte offsets */ uint16_t screen_offset; // relative to the framebuffer uint16_t cursor_offset; // relative to the framebuffer + /* ** */ // updating the screen offset is not atomic, // so we need a temp variable to hold the partial update