Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/src/drawnode.c')
-rw-r--r--source/blender/src/drawnode.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/src/drawnode.c b/source/blender/src/drawnode.c
index 853df3bedfc..d2586c9b781 100644
--- a/source/blender/src/drawnode.c
+++ b/source/blender/src/drawnode.c
@@ -2468,7 +2468,16 @@ static void node_draw_preview(bNodePreview *preview, rctf *prv)
}
}
- glPixelZoom(xscale, yscale);
+#ifdef __APPLE__
+ if(is_a_really_crappy_nvidia_card()) {
+ float zoomx= curarea->winx/(float)(G.v2d->cur.xmax-G.v2d->cur.xmin);
+ float zoomy= curarea->winy/(float)(G.v2d->cur.ymax-G.v2d->cur.ymin);
+ glPixelZoom(zoomx*xscale, zoomy*yscale);
+ }
+ else
+#endif
+ glPixelZoom(xscale, yscale);
+
glEnable(GL_BLEND);
glBlendFunc( GL_ONE, GL_ONE_MINUS_SRC_ALPHA ); /* premul graphics */