Skip to content

Overfilled Rectangle in ControlExample on monitors > 100% #555

@akoch-yatta

Description

@akoch-yatta

Description
If you execute the ControlExample on a primary monitor > 100% you'll see the following issue, when you change a color setting:
image

The filled rectangle overflows its border.

To reproduce:

  1. Open the ControlExample on a primary monitor > 100%, best something like 175%, primary monitor = 150%
  2. Change background color in "Colors and Fonts"

I assume the issue arises from the combination of GC#drawRectangle and a GC#fillRectangle which does not properly work on zoom > 100%. Start debugging with org.eclipse.swt.examples.controlexample.Tab#colorImage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

    Type

    No type

    Projects

    Status

    👀 In Review

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions