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.
This commit is contained in:
committed by
Tor Lillqvist
parent
4481ff0cef
commit
57dd3ef80f
@@ -1,5 +1,11 @@
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user