Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Plans for using floats (doubles) in GC methods?

Đang mở
#3,405 9 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
desktop

Hướng nghiên cứu

Start by reading the GC drawing methods and how their arguments reach the platform backends; the issue does not name specific files or tests. Compare the backend handling, including the MacOS doubles mentioned in the issue, and investigate how font handling is affected by manual scaling. Done means determining whether floating-point inputs can be supported across platforms and what API change would address HiDPI drawing.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Is your feature request related to a problem? Please describe.
Now that SWT has better support for HiDPI and scaling, the drawing methods in GC seem a bit limited, running with 200% scaling means we can only address every other pixel when drawing (unless you change the scaling and input values yourself before).

Describe the solution you'd like
If possible change the input arguments to floats/doubles, if that is not possible add new methods which takes floats/doubles (and use these arguments to the backend).

Describe alternatives you've considered
I tried to change the scaling manually and scale the input values, this works in most cases but the font handling breaks.

Additional context
On MacOS the backend is using doubles already but I have not looked into other platforms yet.

Ngôn ngữ chính
Java
Star
202
Fork
206
Merge trung bình
14 giờ 7 phút
Pull request đã merge (30 ngày)
103

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-platform/eclipse.platform.swt

Tất cả issue của eclipse-platform/eclipse.platform.swt

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.