Changeset 12215 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
- Timestamp:
- Sep 8, 2008 10:58:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r8515 r12215 22 22 #include "Helper.h" 23 23 24 #include <iprt/log.h> 24 25 #include <VBox/VBoxGuest.h> 25 26 #include <VBox/VBoxDev.h> … … 149 150 /* number of available video modes, set by VBoxBuildModesTable */ 150 151 static uint32_t gNumVideoModes = 0; 152 153 static uint32_t g_xresNoVRAM = 0, g_yresNoVRAM = 0, g_bppNoVRAM = 0; 151 154 152 155 /** … … 689 692 } 690 693 else 694 { 691 695 dprintf(("VBoxVideo: invalid parameters for special mode: (xres = %d, yres = %d, bpp = %d, vramSize = %d)\n", 692 696 xres, yres, bpp, vramSize)); 697 if (xres * yres * (bpp / 8) >= vramSize 698 && (xres != g_xresNoVRAM || yres != g_yresNoVRAM || bpp != g_bppNoVRAM)) 699 { 700 LogRel(("VBoxVideo: not enough VRAM for video mode %dx%dx%dbpp. Available: %d bytes. Required: more than %d bytes.\n", 701 xres, yres, bpp, vramSize, xres * yres * (bpp / 8))); 702 g_xresNoVRAM = xres; 703 g_yresNoVRAM = yres; 704 g_bppNoVRAM = bpp; 705 } 706 } 693 707 } 694 708 else
Note:
See TracChangeset
for help on using the changeset viewer.