VirtualBox

儲存庫 vbox 的更動 67476


忽略:
時間撮記:
2017-6-19 下午01:41:19 (7 年 以前)
作者:
vboxsync
訊息:

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

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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) {
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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