VirtualBox

Changeset 67476 in vbox for trunk/src


Ignore:
Timestamp:
Jun 19, 2017 1:41:19 PM (8 years ago)
Author:
vboxsync
Message:

Devices/Graphics: adjust todo, the code can handle 3 pages, i.e. it works up to 2049 pixels @32bpp

File:
1 edited

Legend:

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

    r67474 r67476  
    23122312        uint32_t offPage0   = offSrcLine & ~PAGE_OFFSET_MASK;
    23132313        uint32_t offPage1   = (offSrcLine + cbScanline - 1) & ~PAGE_OFFSET_MASK;
    2314         /** @todo r=klaus this assumes that a line is fully covered by 2 pages,
     2314        /** @todo r=klaus this assumes that a line is fully covered by 3 pages,
    23152315         * irrespective of alignment. Not guaranteed for high res modes, i.e.
    2316          * anything wider than 1026 pixels @32bpp. Need to check the pages
    2317          * between the first and last one, too. */
     2316         * anything wider than 2050 pixels @32bpp. Need to check all pages
     2317         * between the first and last one. */
    23182318        bool     fUpdate    = fFullUpdate | vga_is_dirty(pThis, offPage0) | vga_is_dirty(pThis, offPage1);
    23192319        if (offPage1 - offPage0 > PAGE_SIZE)
     
    25052505        page0 = addr & ~PAGE_OFFSET_MASK;
    25062506        page1 = (addr + bwidth - 1) & ~PAGE_OFFSET_MASK;
    2507         /** @todo r=klaus this assumes that a line is fully covered by 2 pages,
     2507        /** @todo r=klaus this assumes that a line is fully covered by 3 pages,
    25082508         * irrespective of alignment. Not guaranteed for high res modes, i.e.
    2509          * anything wider than 1026 pixels @32bpp. Need to check the pages
    2510          * between the first and last one, too. */
     2509         * anything wider than 2050 pixels @32bpp. Need to check all pages
     2510         * between the first and last one. */
    25112511        bool update = full_update | vga_is_dirty(pThis, page0) | vga_is_dirty(pThis, page1);
    25122512        if (page1 - page0 > PAGE_SIZE) {
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