diff options
author | Tor Lillqvist <tml@iki.fi> | 2000-05-02 21:36:08 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2000-05-02 21:36:08 +0000 |
commit | 57dd3ef80f60994b341fb07d9ec67d9fe4535df2 (patch) | |
tree | 6674a0bcf127a80732e8e6f43373ee726cc2f2e1 /gdk | |
parent | 4481ff0cef20e5d172af28a4a9a39ce8a4b548c9 (diff) | |
download | gtk+-57dd3ef80f60994b341fb07d9ec67d9fe4535df2.tar.gz |
Don't try to draw too narrow or too low arcs, they seem to fail, at least
2000-05-02 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
draw too narrow or too low arcs, they seem to fail, at least with
some display drivers.
* gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdk.c | 2 | ||||
-rw-r--r-- | gdk/win32/gdkdrawable-win32.c | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -294,7 +294,7 @@ gdk_init_check (int *argc, { gchar *d; - d = strrchr((*argv)[0],'/'); + d = strrchr((*argv)[0], G_DIR_SEPARATOR); if (d != NULL) g_set_prgname (d + 1); else diff --git a/gdk/win32/gdkdrawable-win32.c b/gdk/win32/gdkdrawable-win32.c index f2a824355d..4d950f47b7 100644 --- a/gdk/win32/gdkdrawable-win32.c +++ b/gdk/win32/gdkdrawable-win32.c @@ -301,7 +301,10 @@ gdk_win32_draw_arc (GdkDrawable *drawable, GDK_DRAWABLE_XID (drawable), x, y, width, height, angle1, angle2)); - if (width != 0 && height != 0 && angle2 != 0) + /* Seems that drawing arcs with width or height <= 2 fails, at least + * with my TNT card. + */ + if (width > 2 && height > 2 && angle2 != 0) { hdc = gdk_gc_predraw (drawable, gc_private, GDK_GC_FOREGROUND|GDK_GC_BACKGROUND); |