From baa3a8fd3396bbbcd7525f2bc96f317d6a341eb6 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Fri, 29 Jun 2012 17:44:55 +0100 Subject: Scale node style previews if it makes them smaller This makes it easier to distinguish between node styles. --- tikzit/src/gtk/NodeStyleSelector.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tikzit/src/gtk/NodeStyleSelector.m b/tikzit/src/gtk/NodeStyleSelector.m index 885dc79..a175be4 100644 --- a/tikzit/src/gtk/NodeStyleSelector.m +++ b/tikzit/src/gtk/NodeStyleSelector.m @@ -365,6 +365,8 @@ enum { Transformer *shapeTrans = [Transformer transformerToFit:[shape boundingRect] intoScreenRect:NSInsetRect(pixbufBounds, lineWidth, lineWidth) flippedAboutXAxis:YES]; + if ([style scale] < 1.0) + [shapeTrans setScale:[style scale] * [shapeTrans scale]]; CairoRenderContext *context = [[CairoRenderContext alloc] initForSurface:surface]; [context clearSurface]; -- cgit v1.2.3