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

pen width (CreatePen) doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Win32SS
    • Labels:
      None
    • Environment:

      Operating System: ReactOS
      Platform: x86 Hardware

      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. 0001-pen-width-dirty-hack.patch
          5 kB
        2. pen-dirty-hack.png
          pen-dirty-hack.png
          29 kB
        3. PenTest2.zip
          43 kB
        4. penwidth.zip
          3 kB
        5. WidenPathTest.zip
          101 kB

          Issue Links

            Activity

              People

              • Assignee:
                ThePhysicist Timo Kreuzer
                Reporter:
                gasmann Gasmann
              • Votes:
                3 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: