Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 262044 Details for
Bug 494717
[HiDPI][GTK] Path cubic curves are not auto-scaled correctly with HiDPI settings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Test case for reproducing cubic curve scaling problem
CubicCurveBug.java (text/x-java), 834 bytes, created by
Peter Severin
on 2016-05-27 04:08:59 EDT
(
hide
)
Description:
Test case for reproducing cubic curve scaling problem
Filename:
MIME Type:
Creator:
Peter Severin
Created:
2016-05-27 04:08:59 EDT
Size:
834 bytes
patch
obsolete
>package org.eclipse.swt.snippets; > >import org.eclipse.swt.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.widgets.*; > >public class CubicCurveBug { > > public static void main(String[] args) { > final Display display = new Display(); > Shell shell = new Shell(display); > shell.addListener(SWT.Paint, event -> { > GC gc = event.gc; > gc.setForeground(display.getSystemColor(SWT.COLOR_BLACK)); > gc.drawRectangle(10, 10, 100, 100); > > gc.setForeground(display.getSystemColor(SWT.COLOR_RED)); > > int x = 10, y = 10; > Path path = new Path(gc.getDevice()); > path.moveTo(x, y); > path.cubicTo(x, y + 100, x + 100, y, x + 100, y + 100); > > gc.drawPath(path); > > path.dispose(); > }); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) > display.sleep(); > } > display.dispose(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 494717
: 262044 |
262045
|
262046
|
262047
|
262048
|
262067