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:
authorEd Halley <ed@halley.cc>2007-03-06 06:39:15 +0300
committerEd Halley <ed@halley.cc>2007-03-06 06:39:15 +0300
commit3927ee214c5f758fa66ac950ed82a3012bdc64d3 (patch)
tree3ef0644b005dc5a2e965234aa36dcb4f124f6fdb /source/blender/src/editview.c
parent8d95e59feae698c0f6cf23654647561ec5997bcb (diff)
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.
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r--source/blender/src/editview.c10
1 files changed, 7 insertions, 3 deletions
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;