From 57dd3ef80f60994b341fb07d9ec67d9fe4535df2 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 2 May 2000 21:36:08 +0000 Subject: [PATCH] Don't try to draw too narrow or too low arcs, they seem to fail, at least 2000-05-02 Tor Lillqvist * 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. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gdk/gdk.c | 2 +- gdk/win32/gdkdrawable-win32.c | 5 ++++- 9 files changed, 47 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6670cdd2b7..d9891d959a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2000-05-02 Tor Lillqvist + * 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. + Large changes to the Win32 backend, partially made necessary by the changes to the backend-independent internal structures. Attempts to implement similar backing store stuff as diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 6670cdd2b7..d9891d959a 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,5 +1,11 @@ 2000-05-02 Tor Lillqvist + * 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. + Large changes to the Win32 backend, partially made necessary by the changes to the backend-independent internal structures. Attempts to implement similar backing store stuff as diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 6670cdd2b7..d9891d959a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,11 @@ 2000-05-02 Tor Lillqvist + * 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. + Large changes to the Win32 backend, partially made necessary by the changes to the backend-independent internal structures. Attempts to implement similar backing store stuff as diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 6670cdd2b7..d9891d959a 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,5 +1,11 @@ 2000-05-02 Tor Lillqvist + * 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. + Large changes to the Win32 backend, partially made necessary by the changes to the backend-independent internal structures. Attempts to implement similar backing store stuff as diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 6670cdd2b7..d9891d959a 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,11 @@ 2000-05-02 Tor Lillqvist + * 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. + Large changes to the Win32 backend, partially made necessary by the changes to the backend-independent internal structures. Attempts to implement similar backing store stuff as diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 6670cdd2b7..d9891d959a 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,11 @@ 2000-05-02 Tor Lillqvist + * 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. + Large changes to the Win32 backend, partially made necessary by the changes to the backend-independent internal structures. Attempts to implement similar backing store stuff as diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 6670cdd2b7..d9891d959a 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,11 @@ 2000-05-02 Tor Lillqvist + * 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. + Large changes to the Win32 backend, partially made necessary by the changes to the backend-independent internal structures. Attempts to implement similar backing store stuff as diff --git a/gdk/gdk.c b/gdk/gdk.c index 7a1b7de48a..b5b028e5e3 100644 --- a/gdk/gdk.c +++ b/gdk/gdk.c @@ -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);