[gtk+/gtk-2-24] quartz: _gdk_quartz_gc_update_cg_context(): the minimum line width is 1.0
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] quartz: _gdk_quartz_gc_update_cg_context(): the minimum line width is 1.0
- Date: Thu, 8 Nov 2012 14:02:43 +0000 (UTC)
commit 5934ad2e22dd04deb823abebeb2815f73522fd5d
Author: Michael Natterer <mitch lanedo com>
Date: Thu Nov 8 15:00:38 2012 +0100
quartz: _gdk_quartz_gc_update_cg_context(): the minimum line width is 1.0
not G_MINFLOAT. Patch from Kristian Rietveld.
gdk/quartz/gdkgc-quartz.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/quartz/gdkgc-quartz.c b/gdk/quartz/gdkgc-quartz.c
index d54ad52..1e64972 100644
--- a/gdk/quartz/gdkgc-quartz.c
+++ b/gdk/quartz/gdkgc-quartz.c
@@ -551,7 +551,7 @@ _gdk_quartz_gc_update_cg_context (GdkGC *gc,
CGContextSetStrokeColorWithColor (context, color);
CGColorRelease (color);
- CGContextSetLineWidth (context, MAX (G_MINFLOAT, private->line_width));
+ CGContextSetLineWidth (context, MAX (1.0, private->line_width));
switch (private->line_style)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]