summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkprivate-win32.h
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2002-03-28 23:25:33 +0000
committerHans Breuer <hans@src.gnome.org>2002-03-28 23:25:33 +0000
commitfe60d43a26380580e54ddec62a3746253f07cc0d (patch)
treee2ff5ec60bd4a03be979c23d174ee6cfdc456898 /gdk/win32/gdkprivate-win32.h
parentdf10ebad76fe2e105eb1bca9f8ac29b85b0cfb60 (diff)
downloadgtk+-fe60d43a26380580e54ddec62a3746253f07cc0d.tar.gz
Fixed dashed line issues (#74441) to an IMO reasonable extend. That is:
2002-03-29 Hans Breuer <hans@breuer.org> Fixed dashed line issues (#74441) to an IMO reasonable extend. That is: use PS_USERSTYLE on WinNT (the next GDI limit appears to be with lines width > 50); Render horizontal and vertical dashed lines on Win9x 'by hand'. Dotted selection rectangles and Dia look nice ... * gdk/win32/gdkprivate-win32.h : add pen_dashes pointer and num_pen_dashes to _GdkGCWin32 * gdk/win32/gdkgc-win32.c : initialize pen_dashes and remove the guesses from dashes to windoze line styles. (predraw_set_forground) : always ExtCreatePen (PS_SOLID) on Win9x, which does not support PS_USERSTYLE. * gdk/win32/gdkdrawable-win32.c : new functions render_line_ <horizontal|vertical>. Use them if not running on NT in gdk_win32_draw_<rectangle|segments|lines> () * gdk/win32/gdkkeys-win32.c (gdk_keyval_name) : return NULL for keyval == 0 to avoid to have zeros in all menu entries without accelerator.
Diffstat (limited to 'gdk/win32/gdkprivate-win32.h')
-rw-r--r--gdk/win32/gdkprivate-win32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/win32/gdkprivate-win32.h b/gdk/win32/gdkprivate-win32.h
index 8b2d0c65a8..4b50fb5183 100644
--- a/gdk/win32/gdkprivate-win32.h
+++ b/gdk/win32/gdkprivate-win32.h
@@ -284,6 +284,8 @@ struct _GdkGCWin32
gint graphics_exposures;
gint pen_width;
DWORD pen_style;
+ DWORD *pen_dashes; /* use for PS_USERSTYLE or step-by-step rendering */
+ gint pen_num_dashes;
HANDLE hwnd; /* If a HDC is allocated, for which window,
* or what bitmap is selected into it
*/