VirtualBox

Changeset 50079 in vbox for trunk


Ignore:
Timestamp:
Jan 15, 2014 12:26:01 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91599
Message:

DevVGA: take the size of the framebuffer into account.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r49983 r50079  
    23512351        full_update = true;
    23522352    }
     2353
     2354    if (pThis->fRenderVRAM)
     2355    {
     2356        /* Do not update the destination buffer if it is not big enough.
     2357         * Can happen if the resize request was ignored by the driver.
     2358         */
     2359        if (   pThis->pDrv->cx != (uint32_t)width
     2360            || pThis->pDrv->cy != (uint32_t)height
     2361            || pThis->pDrv->cBits != (uint32_t)bits)
     2362        {
     2363            Log(("Framebuffer mismatch: vga %dx%d@%d, drv %dx%d@%d!!!\n",
     2364                 width, height, bits,
     2365                 pThis->pDrv->cx, pThis->pDrv->cy, pThis->pDrv->cBits));
     2366            return VINF_SUCCESS;
     2367        }
     2368    }
     2369
    23532370    vga_draw_line = vga_draw_line_table[v * 4 + get_depth_index(pThis->pDrv->cBits)];
    23542371
Note: See TracChangeset for help on using the changeset viewer.

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