VirtualBox

Changeset 4531 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Sep 5, 2007 10:10:22 AM (17 years ago)
Author:
vboxsync
Message:

1903: Finalize DirectDraw rendering method:

Issue for intel-915 (at least) integrated video card resolved.
DDraw was not work at all on this video card.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBDDRAW.cpp

    r4071 r4531  
    8181    memset (&sd, 0, sizeof (sd));
    8282    sd.dwSize = sizeof (sd);
    83     sd.dwFlags = DDSD_CAPS;
     83    sd.dwFlags = DDSD_CAPS | DDSD_BACKBUFFERCOUNT;
    8484    sd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
     85    sd.dwBackBufferCount = 0;
    8586
    8687    HRESULT rc = pDDRAW->CreateSurface (&sd, &pPrimarySurface, NULL);
     
    347348                break;
    348349            default:
    349                 /* we don't directly support any other color depth */               
     350                /* we don't directly support any other color depth */
    350351                return false;
    351352        }
     
    361362    if (aPixelFormat != FramebufferPixelFormat_PixelFormatOpaque)
    362363    {
    363         /* we don't directly support any other pixel format */               
     364        /* we don't directly support any other pixel format */
    364365        return false;
    365366    }
     
    397398        return false;
    398399    }
    399    
     400
    400401    /* Initialize the surface description member. It will be used to obtain
    401402     * address, bpp and bpl. */
    402403    mSurfaceDesc = sd;
    403    
     404
    404405    LOGDDRAW(("DDRAW: Created %s surface: format = %d, address = %p\n",
    405406              mUsesGuestVRAM ? "GuestVRAM": "system memory",
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette