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

pen width (CreatePen) doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.4.15
    • Win32SS
    • None

    Description

      Created an attachment (id=2032)
      test case illustrating pen width bug

      I noticed a bug in ReactOS concerning Pens. When using something like CreatePen(PS_SOLID, 10, RGB(0,0,0)); the resulting pen won't be painting with a width of 10 pixels as requested but only with default 1 pixel.

      I've attached a (hopefully helpful) sample program which shows the issue exactly. The lines shown on the window should get bigger from left to right, what they do just fine on windows. On ReactOS however, they all appear to be of the same thinness.

      As I don't know the internals of ReactOS I can't track it down any further. Hope this is enough information. Bug appears in livecd-29784-rel.iso downloaded from svn.reactos.org/iso.

      Attachments

        1. penwidth.zip
          3 kB
        2. 0001-pen-width-dirty-hack.patch
          5 kB
        3. pen-dirty-hack.png
          pen-dirty-hack.png
          29 kB
        4. PenTest2.zip
          43 kB
        5. WidenPathTest.zip
          101 kB

        Issue Links

          Activity

            People

              katayama_hirofumi_mz Katayama Hirofumi MZ
              gasmann Gasmann
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: