vbox的更動 11166 路徑 trunk/src/VBox/Devices/Graphics
- 時間撮記:
- 2008-8-6 上午12:24:37 (16 年 以前)
- 位置:
- trunk/src/VBox/Devices/Graphics
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
-
屬性 svn:keywords
設為
Author Date Id Revision
r11163 r11166 1 1 #ifdef VBOX 2 /* $Id :$ */2 /* $Id$ */ 3 3 /** @file 4 * VBox VGA/VESA device4 * DevVGA - VBox VGA/VESA device. 5 5 */ 6 6 -
屬性 svn:keywords
設為
-
trunk/src/VBox/Devices/Graphics/DevVGA.h
r11163 r11166 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox VGA/VESA device3 * DevVGA - VBox VGA/VESA device, internal header. 4 4 */ 5 5 -
trunk/src/VBox/Devices/Graphics/DevVGAModes.h
r8155 r11166 1 /* $Id$ */ 1 2 /** @file 3 * DevVGA - VBox VGA/VESA device, VBE modes. 2 4 * 3 * VBox VGA/VESA device:4 5 * List of static mode information, containing all "supported" VBE 5 * modes and their 'settings' 6 * modes and their 'settings'. 6 7 */ 7 8 -
trunk/src/VBox/Devices/Graphics/DevVGATmpl.h
r8155 r11166 1 /* $Id: $ */ 1 2 /** @file 2 * 3 * VBox VGA/VESA device 3 * DevVGA - VBox VGA/VESA device, code templates. 4 4 */ 5 5 … … 47 47 #if DEPTH == 8 48 48 #define BPP 1 49 #define PIXEL_TYPE uint8_t 49 #define PIXEL_TYPE uint8_t 50 50 #elif DEPTH == 15 || DEPTH == 16 51 51 #define BPP 2 52 #define PIXEL_TYPE uint16_t 52 #define PIXEL_TYPE uint16_t 53 53 #elif DEPTH == 32 54 54 #define BPP 4 55 #define PIXEL_TYPE uint32_t 55 #define PIXEL_TYPE uint32_t 56 56 #else 57 57 #error unsupport depth … … 60 60 #if DEPTH != 15 61 61 62 static inline void glue(vga_draw_glyph_line_, DEPTH)(uint8_t *d, 62 static inline void glue(vga_draw_glyph_line_, DEPTH)(uint8_t *d, 63 63 uint32_t font_data, 64 uint32_t xorcol, 64 uint32_t xorcol, 65 65 uint32_t bgcol) 66 66 { … … 90 90 { 91 91 uint32_t font_data, xorcol; 92 92 93 93 xorcol = bgcol ^ fgcol; 94 94 do { … … 105 105 { 106 106 uint32_t font_data, xorcol; 107 107 108 108 xorcol = bgcol ^ fgcol; 109 109 do { 110 110 font_data = font_ptr[0]; 111 glue(vga_draw_glyph_line_, DEPTH)(d, 112 expand4to8[font_data >> 4], 111 glue(vga_draw_glyph_line_, DEPTH)(d, 112 expand4to8[font_data >> 4], 113 113 xorcol, bgcol); 114 glue(vga_draw_glyph_line_, DEPTH)(d + 8 * BPP, 115 expand4to8[font_data & 0x0f], 114 glue(vga_draw_glyph_line_, DEPTH)(d + 8 * BPP, 115 expand4to8[font_data & 0x0f], 116 116 xorcol, bgcol); 117 117 font_ptr += 4; … … 121 121 122 122 static void glue(vga_draw_glyph9_, DEPTH)(uint8_t *d, int linesize, 123 const uint8_t *font_ptr, int h, 123 const uint8_t *font_ptr, int h, 124 124 uint32_t fgcol, uint32_t bgcol, int dup9) 125 125 { 126 126 uint32_t font_data, xorcol, v; 127 127 128 128 xorcol = bgcol ^ fgcol; 129 129 do { … … 137 137 else 138 138 ((uint8_t *)d)[8] = bgcol; 139 139 140 140 #elif BPP == 2 141 141 cpu_to_32wu(((uint32_t *)d)+0, (dmask4[(font_data >> 6)] & xorcol) ^ bgcol); … … 168 168 } 169 169 170 /* 170 /* 171 171 * 4 color mode 172 172 */ 173 static void glue(vga_draw_line2_, DEPTH)(VGAState *s1, uint8_t *d, 173 static void glue(vga_draw_line2_, DEPTH)(VGAState *s1, uint8_t *d, 174 174 const uint8_t *s, int width) 175 175 { … … 212 212 #endif 213 213 214 /* 214 /* 215 215 * 4 color mode, dup2 horizontal 216 216 */ 217 static void glue(vga_draw_line2d2_, DEPTH)(VGAState *s1, uint8_t *d, 217 static void glue(vga_draw_line2d2_, DEPTH)(VGAState *s1, uint8_t *d, 218 218 const uint8_t *s, int width) 219 219 { … … 247 247 } 248 248 249 /* 249 /* 250 250 * 16 color mode 251 251 */ 252 static void glue(vga_draw_line4_, DEPTH)(VGAState *s1, uint8_t *d, 252 static void glue(vga_draw_line4_, DEPTH)(VGAState *s1, uint8_t *d, 253 253 const uint8_t *s, int width) 254 254 { … … 279 279 } 280 280 281 /* 281 /* 282 282 * 16 color mode, dup2 horizontal 283 283 */ 284 static void glue(vga_draw_line4d2_, DEPTH)(VGAState *s1, uint8_t *d, 284 static void glue(vga_draw_line4d2_, DEPTH)(VGAState *s1, uint8_t *d, 285 285 const uint8_t *s, int width) 286 286 { … … 311 311 } 312 312 313 /* 313 /* 314 314 * 256 color mode, double pixels 315 315 * 316 316 * XXX: add plane_mask support (never used in standard VGA modes) 317 317 */ 318 static void glue(vga_draw_line8d2_, DEPTH)(VGAState *s1, uint8_t *d, 318 static void glue(vga_draw_line8d2_, DEPTH)(VGAState *s1, uint8_t *d, 319 319 const uint8_t *s, int width) 320 320 { … … 334 334 } 335 335 336 /* 336 /* 337 337 * standard 256 color mode 338 338 * 339 339 * XXX: add plane_mask support (never used in standard VGA modes) 340 340 */ 341 static void glue(vga_draw_line8_, DEPTH)(VGAState *s1, uint8_t *d, 341 static void glue(vga_draw_line8_, DEPTH)(VGAState *s1, uint8_t *d, 342 342 const uint8_t *s, int width) 343 343 { … … 366 366 /* XXX: optimize */ 367 367 368 /* 368 /* 369 369 * 15 bit color 370 370 */ 371 static void glue(vga_draw_line15_, DEPTH)(VGAState *s1, uint8_t *d, 371 static void glue(vga_draw_line15_, DEPTH)(VGAState *s1, uint8_t *d, 372 372 const uint8_t *s, int width) 373 373 { … … 388 388 d += BPP; 389 389 } while (--w != 0); 390 #endif 391 } 392 393 /* 390 #endif 391 } 392 393 /* 394 394 * 16 bit color 395 395 */ 396 static void glue(vga_draw_line16_, DEPTH)(VGAState *s1, uint8_t *d, 396 static void glue(vga_draw_line16_, DEPTH)(VGAState *s1, uint8_t *d, 397 397 const uint8_t *s, int width) 398 398 { … … 413 413 d += BPP; 414 414 } while (--w != 0); 415 #endif 416 } 417 418 /* 415 #endif 416 } 417 418 /* 419 419 * 24 bit color 420 420 */ 421 static void glue(vga_draw_line24_, DEPTH)(VGAState *s1, uint8_t *d, 421 static void glue(vga_draw_line24_, DEPTH)(VGAState *s1, uint8_t *d, 422 422 const uint8_t *s, int width) 423 423 { … … 442 442 } 443 443 444 /* 444 /* 445 445 * 32 bit color 446 446 */ 447 static void glue(vga_draw_line32_, DEPTH)(VGAState *s1, uint8_t *d, 447 static void glue(vga_draw_line32_, DEPTH)(VGAState *s1, uint8_t *d, 448 448 const uint8_t *s, int width) 449 449 { … … 476 476 #ifdef VBOX 477 477 static 478 #endif/* VBOX */ 479 void glue(vga_draw_cursor_line_, DEPTH)(uint8_t *d1, 480 const uint8_t *src1, 478 #endif/* VBOX */ 479 void glue(vga_draw_cursor_line_, DEPTH)(uint8_t *d1, 480 const uint8_t *src1, 481 481 int poffset, int w, 482 unsigned int color0, 482 unsigned int color0, 483 483 unsigned int color1, 484 484 unsigned int color_xor)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器