mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 06:14:28 +08:00
Fix Fl_GDI_Graphics_Driver::point_unscaled() so points are also enlarged when scaling increases.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -35,8 +35,12 @@
|
|||||||
|
|
||||||
// --- line and polygon drawing with integer coordinates
|
// --- line and polygon drawing with integer coordinates
|
||||||
|
|
||||||
void Fl_GDI_Graphics_Driver::point_unscaled(float x, float y) {
|
void Fl_GDI_Graphics_Driver::point_unscaled(float fx, float fy) {
|
||||||
SetPixel(gc_, x, y, fl_RGB());
|
int width = scale_ >= 1 ? scale_ : 1;
|
||||||
|
RECT rect;
|
||||||
|
rect.left = fx; rect.top = fy;
|
||||||
|
rect.right = fx + width; rect.bottom = fy + width;
|
||||||
|
FillRect(gc_, &rect, fl_brush());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Fl_GDI_Graphics_Driver::rect_unscaled(float x, float y, float w, float h) {
|
void Fl_GDI_Graphics_Driver::rect_unscaled(float x, float y, float w, float h) {
|
||||||
|
|||||||
Reference in New Issue
Block a user