When drawing filled polygons, don't draw the outline, similar behaviour as
2004-03-13 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing filled polygons, don't draw the outline, similar behaviour as draw_rectangle(). Apparently GTK and GIMP don't use gdk_draw_polygon() much (or always draw the outline, too), as this has gone undetected for so long. Thanks to Bruce Hochstetler.
This commit is contained in:
committed by
Tor Lillqvist
parent
a3e84d5b70
commit
0b498b3e05
@@ -1,3 +1,11 @@
|
||||
2004-03-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
|
||||
filled polygons, don't draw the outline, similar behaviour
|
||||
as draw_rectangle(). Apparently GTK and GIMP don't use
|
||||
gdk_draw_polygon() much (or always draw the outline, too), as this
|
||||
has gone undetected for so long. Thanks to Bruce Hochstetler.
|
||||
|
||||
2004-03-10 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
2004-03-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
|
||||
filled polygons, don't draw the outline, similar behaviour
|
||||
as draw_rectangle(). Apparently GTK and GIMP don't use
|
||||
gdk_draw_polygon() much (or always draw the outline, too), as this
|
||||
has gone undetected for so long. Thanks to Bruce Hochstetler.
|
||||
|
||||
2004-03-10 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
2004-03-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
|
||||
filled polygons, don't draw the outline, similar behaviour
|
||||
as draw_rectangle(). Apparently GTK and GIMP don't use
|
||||
gdk_draw_polygon() much (or always draw the outline, too), as this
|
||||
has gone undetected for so long. Thanks to Bruce Hochstetler.
|
||||
|
||||
2004-03-10 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
2004-03-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
|
||||
filled polygons, don't draw the outline, similar behaviour
|
||||
as draw_rectangle(). Apparently GTK and GIMP don't use
|
||||
gdk_draw_polygon() much (or always draw the outline, too), as this
|
||||
has gone undetected for so long. Thanks to Bruce Hochstetler.
|
||||
|
||||
2004-03-10 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
2004-03-13 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
|
||||
filled polygons, don't draw the outline, similar behaviour
|
||||
as draw_rectangle(). Apparently GTK and GIMP don't use
|
||||
gdk_draw_polygon() much (or always draw the outline, too), as this
|
||||
has gone undetected for so long. Thanks to Bruce Hochstetler.
|
||||
|
||||
2004-03-10 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
|
||||
|
||||
@@ -905,6 +905,7 @@ draw_polygon (GdkGCWin32 *gcwin32,
|
||||
{
|
||||
gboolean filled;
|
||||
POINT *pts;
|
||||
HPEN old_pen;
|
||||
gint npoints;
|
||||
gint i;
|
||||
|
||||
@@ -920,7 +921,14 @@ draw_polygon (GdkGCWin32 *gcwin32,
|
||||
}
|
||||
|
||||
if (filled)
|
||||
GDI_CALL (Polygon, (hdc, pts, npoints));
|
||||
{
|
||||
old_pen = SelectObject (hdc, GetStockObject (NULL_PEN));
|
||||
if (old_pen == NULL)
|
||||
WIN32_GDI_FAILED ("SelectObject");
|
||||
GDI_CALL (Polygon, (hdc, pts, npoints));
|
||||
if (old_pen != NULL)
|
||||
GDI_CALL (SelectObject, (hdc, old_pen));
|
||||
}
|
||||
else
|
||||
GDI_CALL (Polyline, (hdc, pts, npoints));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user