Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-18921

mspaint: The image resizing border's color is different between Windows and ReactOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • None

    Description

      20230408-0.4.15-dev-5922-gfc5311a

      Our-mspaint-on-ReactOS-draws-white-resizing-border.png
      Our-mspaint-on-Win10-draws-black-resizing-border.png

      void DrawXorRect(HDC hdc, const RECT *prc)
      {
          HGDIOBJ oldPen = ::SelectObject(hdc, ::CreatePen(PS_SOLID, 0, RGB(255, 255, 255)));
          HGDIOBJ oldBrush = ::SelectObject(hdc, ::GetStockObject(NULL_BRUSH));
          INT oldRop2 = SetROP2(hdc, R2_XORPEN);
          ::Rectangle(hdc, prc->left, prc->top, prc->right, prc->bottom);
          ::SetROP2(hdc, oldRop2);
          ::SelectObject(hdc, oldBrush);
          ::DeleteObject(::SelectObject(hdc, oldPen));
      }
      

      This issue is related to the bug of R2_XORPEN.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              katayama_hirofumi_mz Katayama Hirofumi MZ
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: