Changeset 32811 in vbox
- Timestamp:
- Sep 29, 2010 11:00:03 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 66263
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r32807 r32811 2191 2191 { 2192 2192 int y1, y2, y, update, page_min, page_max, linesize, y_start, double_scan; 2193 int width, height, shift_control, line_offset, page0, page1, bwidth ;2193 int width, height, shift_control, line_offset, page0, page1, bwidth, bits; 2194 2194 int disp_width, multi_run; 2195 2195 uint8_t *d; … … 2223 2223 v = VGA_DRAW_LINE4; 2224 2224 } 2225 bits = 4; 2225 2226 } else if (shift_control == 1) { 2226 2227 full_update |= update_palette16(s); … … 2231 2232 v = VGA_DRAW_LINE2; 2232 2233 } 2234 bits = 4; 2233 2235 } else { 2234 2236 switch(s->get_bpp(s)) { … … 2237 2239 full_update |= update_palette256(s); 2238 2240 v = VGA_DRAW_LINE8D2; 2241 bits = 4; 2239 2242 break; 2240 2243 case 8: 2241 2244 full_update |= update_palette256(s); 2242 2245 v = VGA_DRAW_LINE8; 2246 bits = 8; 2243 2247 break; 2244 2248 case 15: 2245 2249 v = VGA_DRAW_LINE15; 2250 bits = 16; 2246 2251 break; 2247 2252 case 16: 2248 2253 v = VGA_DRAW_LINE16; 2254 bits = 16; 2249 2255 break; 2250 2256 case 24: 2251 2257 v = VGA_DRAW_LINE24; 2258 bits = 24; 2252 2259 break; 2253 2260 case 32: 2254 2261 v = VGA_DRAW_LINE32; 2262 bits = 32; 2255 2263 break; 2256 2264 } … … 2299 2307 bwidth = width * 4; 2300 2308 #else /* VBOX */ 2301 /* The width of VRAM scanline. */ 2302 bwidth = s->line_offset; 2303 /* In some cases the variable is not yet set, probably due to incomplete 2304 * programming of the virtual hardware ports. Just return. 2305 */ 2306 if (bwidth == 0) return VINF_SUCCESS; 2309 bwidth = (width * bits + 7) / 8; /* The visible width of a scanline. */ 2307 2310 #endif /* VBOX */ 2308 2311 y_start = -1;
Note:
See TracChangeset
for help on using the changeset viewer.