summaryrefslogtreecommitdiff
path: root/plugins/gtkui/ddbtabstrip.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-08-31 12:38:55 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-08-31 12:38:55 +0200
commit8a9399de8f8aff06cc072a55e28bcecea0d4a10b (patch)
tree097db8bfbfc2a35462528e22e3c8f15bc790f98f /plugins/gtkui/ddbtabstrip.c
parentba69db5f9bfa1b5de63bba68a883697a57da3e00 (diff)
gtkui: improved tab rendering on high res
Diffstat (limited to 'plugins/gtkui/ddbtabstrip.c')
-rw-r--r--plugins/gtkui/ddbtabstrip.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c
index 02dbc2d7..c7727a2a 100644
--- a/plugins/gtkui/ddbtabstrip.c
+++ b/plugins/gtkui/ddbtabstrip.c
@@ -376,16 +376,16 @@ ddb_tabstrip_draw_tab (GtkWidget *widget, cairo_t *cr, int idx, int selected, in
#endif
{ x + w - h - 1, y },
{ x + w - h + 1, y + 1 },
- { x + w - 2, y + h - 2 },
- { x + w - 2, y + h - 3 },
+ { x + w - 3, y + h - 3 },
+ { x + w - 0, y + h - 2 },
};
coord_t points_frame2[] = {
{ x + 1, y + h + 1 },
{ x + 1, y + 1 },
{ x + w - h - 1, y + 1 },
{ x + w - h + 1, y + 2 },
- { x + w-3, y + h - 2 },
- { x + w-2, y + h - 2 },
+ { x + w - 3, y + h - 2 },
+ { x + w - 0, y + h - 1 },
};
#if !GTK_CHECK_VERSION(3,0,0)
GdkGC *bg = gdk_gc_new (drawable);
@@ -601,8 +601,11 @@ tabstrip_render (DdbTabStrip *ts, cairo_t *cr) {
tabstrip_adjust_hscroll (ts);
cairo_set_line_width (cr, 1);
+#ifdef __APPLE__
+ cairo_set_antialias (cr, CAIRO_ANTIALIAS_GRAY);
+#else
cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);
-
+#endif
int cnt = deadbeef->plt_get_count ();
int hscroll = ts->hscrollpos;