Changeset 4531 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 5, 2007 10:10:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBDDRAW.cpp
r4071 r4531 81 81 memset (&sd, 0, sizeof (sd)); 82 82 sd.dwSize = sizeof (sd); 83 sd.dwFlags = DDSD_CAPS ;83 sd.dwFlags = DDSD_CAPS | DDSD_BACKBUFFERCOUNT; 84 84 sd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE; 85 sd.dwBackBufferCount = 0; 85 86 86 87 HRESULT rc = pDDRAW->CreateSurface (&sd, &pPrimarySurface, NULL); … … 347 348 break; 348 349 default: 349 /* we don't directly support any other color depth */ 350 /* we don't directly support any other color depth */ 350 351 return false; 351 352 } … … 361 362 if (aPixelFormat != FramebufferPixelFormat_PixelFormatOpaque) 362 363 { 363 /* we don't directly support any other pixel format */ 364 /* we don't directly support any other pixel format */ 364 365 return false; 365 366 } … … 397 398 return false; 398 399 } 399 400 400 401 /* Initialize the surface description member. It will be used to obtain 401 402 * address, bpp and bpl. */ 402 403 mSurfaceDesc = sd; 403 404 404 405 LOGDDRAW(("DDRAW: Created %s surface: format = %d, address = %p\n", 405 406 mUsesGuestVRAM ? "GuestVRAM": "system memory",
Note:
See TracChangeset
for help on using the changeset viewer.