Changeset 3408 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Jul 4, 2007 8:25:34 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r3153 r3408 209 209 ULONG yOffset = vboxGetHeightReduction(); 210 210 211 #if 0 // do not support 8 bit video modes211 #ifdef VBOX_WITH_8BPP_MODES 212 212 /* 213 213 * 8 bit video modes … … 263 263 ++matrixIndex; 264 264 } 265 #endif /* 0*/265 #endif /* VBOX_WITH_8BPP_MODES */ 266 266 267 267 /* … … 585 585 && yres 586 586 && ( (bpp == 16) 587 #ifdef VBOX_WITH_8BPP_MODES 588 || (bpp == 8) 589 #endif 587 590 || (bpp == 24) 588 591 || (bpp == 32))) … … 617 620 switch (bpp) 618 621 { 622 #ifdef VBOX_WITH_8BPP_MODES 623 case 8: 624 VideoModes[gNumVideoModes].NumberRedBits = 6; 625 VideoModes[gNumVideoModes].NumberGreenBits = 6; 626 VideoModes[gNumVideoModes].NumberBlueBits = 6; 627 VideoModes[gNumVideoModes].RedMask = 0; 628 VideoModes[gNumVideoModes].GreenMask = 0; 629 VideoModes[gNumVideoModes].BlueMask = 0; 630 break; 631 #endif 619 632 case 16: 620 633 VideoModes[gNumVideoModes].NumberRedBits = 5; … … 643 656 } 644 657 VideoModes[gNumVideoModes].AttributeFlags = VIDEO_MODE_GRAPHICS | VIDEO_MODE_COLOR | VIDEO_MODE_NO_OFF_SCREEN; 658 #ifdef VBOX_WITH_8BPP_MODES 659 if (bpp == 8) 660 VideoModes[gNumVideoModes].AttributeFlags |= VIDEO_MODE_PALETTE_DRIVEN | VIDEO_MODE_MANAGED_PALETTE; 661 #endif 645 662 VideoModes[gNumVideoModes].VideoMemoryBitmapWidth = xres; 646 663 VideoModes[gNumVideoModes].VideoMemoryBitmapHeight = yres;
Note:
See TracChangeset
for help on using the changeset viewer.