From 3927ee214c5f758fa66ac950ed82a3012bdc64d3 Mon Sep 17 00:00:00 2001 From: Ed Halley Date: Tue, 6 Mar 2007 03:39:15 +0000 Subject: Uses the bglFlush() and is_a_really_crappy_intel_card() hacks to give better support on low-end Macintoshes with integrated Intel graphics chipsets. Patch received from "UncleZiev" on #blendercoders, but I adjusted it so other video chipsets and platforms are unaffected. The only visual difference is that on MacBook and iMac machines, the box select outline is drawn with solid, not dashed lines like other platforms and not invisible as they were previously. --- source/blender/src/editview.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source/blender/src/editview.c') diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c index 6a79d9b4ddd..c38ba9e8f8c 100644 --- a/source/blender/src/editview.c +++ b/source/blender/src/editview.c @@ -1656,10 +1656,14 @@ void borderselect(void) face_borderselect(); return; } - - setlinestyle(2); + + a = 0; +#ifdef __APPLE__ + a = is_a_really_crappy_intel_card(); +#endif + if (!a) setlinestyle(2); val= get_border(&rect, 3); - setlinestyle(0); + if (!a) setlinestyle(0); if(val==0) return; -- cgit v1.2.3