another fix for bug #313, issues with color flipping on the intel macs

This commit is contained in:
benfry
2006-09-15 12:34:47 +00:00
parent 69ba601655
commit ab0fe9ced4
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -21,6 +21,8 @@ _ http://dev.processing.org/bugs/show_bug.cgi?id=244
X give that field focus explicitly, rather than just for typing
X menu option/command key to switch between tabs
X http://dev.processing.org/bugs/show_bug.cgi?id=55
X fix movie playback on intel macs
X http://dev.processing.org/bugs/show_bug.cgi?id=313
faq additions
X add notes about sketchPath() and savePath() to library docs
+8 -1
View File
@@ -246,7 +246,14 @@ public class Movie extends PImage implements PConstants, Runnable {
try {
if (firstFrame) {
movieRect = movie.getBox();
movieGraphics = new QDGraphics(movieRect);
//movieGraphics = new QDGraphics(movieRect);
if (quicktime.util.EndianOrder.isNativeLittleEndian()) {
movieGraphics =
new QDGraphics(QDConstants.k32BGRAPixelFormat, movieRect);
} else {
movieGraphics =
new QDGraphics(QDGraphics.kDefaultPixelFormat, movieRect);
}
}
Pict pict = movie.getPict(movie.getTime()); // returns an int