Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-13526 Improve the UserInit "wizard"
  3. CORE-11323

Drawing mismatch at userinit LiveCD dialog

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • Minor
    • 0.4.6
    • Setup

    Description

      in base/system/userinit/livecd.c:529:

      BitBlt(lpDrawItem->hDC,
      left,
      lpDrawItem->rcItem.top,
      lpDrawItem->rcItem.right - lpDrawItem->rcItem.left,
      lpDrawItem->rcItem.bottom - lpDrawItem->rcItem.top,
      hdcMem,
      0,
      0,
      SRCCOPY);

      the fourth parameter is bigger than image width so it draws beyond image area. This is visible when LiveCD is lauched on EGA graphics because window color goes transparent, but bitmap doesn't.
      But it would draw fine if there was pState->ImageInfo.cxSource instead, or minimum of it and (lpDrawItem->rcItem.right - lpDrawItem->rcItem.left).

      Attachments

        1. fuyfd.png
          37 kB
          CircularTriangle06
        2. uguias.png
          37 kB
          CircularTriangle06
        3. a.patch
          0.6 kB
          CircularTriangle06
        4. vgaaaa.png
          38 kB
          CircularTriangle06
        5. _2017-07-08_10-10-03.png
          88 kB
          CircularTriangle06
        6. _2017-07-08_10-13-32.png
          46 kB
          CircularTriangle06

        Issue Links

          Activity

            People

              hbelusca hbelusca
              CircularTriangle06 CircularTriangle06
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: