[pypy-commit] lang-smalltalk default: discontinue the support for 16 bit display depth, because of their color-format

lwassermann noreply at buildbot.pypy.org
Fri Jul 5 15:37:22 CEST 2013


Author: Lars Wassermann <lars.wassermann at gmail.com>
Branch: 
Changeset: r487:a2e7f25a1987
Date: 2013-07-05 15:33 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/a2e7f25a1987/

Log:	discontinue the support for 16 bit display depth, because of their
	color-format

diff --git a/spyvm/model.py b/spyvm/model.py
--- a/spyvm/model.py
+++ b/spyvm/model.py
@@ -950,8 +950,8 @@
     def create(space, w_class, size, depth, display):
         if depth == 1:
             return W_DisplayBitmap1Bit(space, w_class, size, depth, display)
-        elif depth == 16:
-            return W_DisplayBitmap32Bit(space, w_class, size, depth, display)
+        # elif depth == 16:
+        #     return W_DisplayBitmap32Bit(space, w_class, size, depth, display)
         elif depth == 32:
             return W_DisplayBitmap32Bit(space, w_class, size, depth, display)
         else:
@@ -1022,6 +1022,8 @@
             mask >>= 1
             pos += 1
 
+# XXX: We stop supporting 16 bit displays, because the 16bit are with 5bit per
+# color channel
 class W_DisplayBitmap16Bit(W_DisplayBitmap):
     @jit.unroll_safe
     def setword(self, n, word):
diff --git a/spyvm/test/jit.py b/spyvm/test/jit.py
--- a/spyvm/test/jit.py
+++ b/spyvm/test/jit.py
@@ -55,7 +55,7 @@
 
         from spyvm import objspace
         space = objspace.ObjSpace()
-        
+
         image = create_testimage(space)
         interp = interpreter.Interpreter(space, image)
         w_selector = interp.perform(space.wrap_string('loopTest2'), "asSymbol")


More information about the pypy-commit mailing list