1. pygame
  2. pygame
  3. pygame

Commits

pygame  committed 56f90ff

add support for 64bit data types in surfarray.blit_array

  • Participants
  • Parent commits 85f2ac8
  • Branches default

Comments (0)

Files changed (2)

File WHATSNEW

View file
  • Ignore whitespace
 # BREAK = change breaks existing code
 # BUG	= fixed a bug that was (or could have been) crashing
 
+October 24, 2005
+    Add support for 64bit data types in surfarray.blit_array()
+
 October 2, 2005
     switch to the new reference documentation system
 

File src/surfarray.c

View file
  • Ignore whitespace
 				case sizeof(Uint8):  COPYMACRO_2D(Uint8, Uint8)  break;
 				case sizeof(Uint16): COPYMACRO_2D(Uint8, Uint16)  break;
 				case sizeof(Uint32): COPYMACRO_2D(Uint8, Uint32)  break;
+				case sizeof(Uint64): COPYMACRO_2D(Uint8, Uint64)  break;
 				default:
 					if(!PySurface_Unlock(surfobj)) return NULL;
 					return RAISE(PyExc_ValueError, "unsupported datatype for array\n");
 				case sizeof(Uint8):  COPYMACRO_2D(Uint16, Uint8)  break;
 				case sizeof(Uint16): COPYMACRO_2D(Uint16, Uint16)  break;
 				case sizeof(Uint32): COPYMACRO_2D(Uint16, Uint32)  break;
+				case sizeof(Uint64): COPYMACRO_2D(Uint16, Uint64)  break;
 				default:
 					if(!PySurface_Unlock(surfobj)) return NULL;
 					return RAISE(PyExc_ValueError, "unsupported datatype for array\n");
 				case sizeof(Uint8): COPYMACRO_3D(Uint16, Uint8)  break;
 				case sizeof(Uint16):COPYMACRO_3D(Uint16, Uint16)  break;
 				case sizeof(Uint32):COPYMACRO_3D(Uint16, Uint32)  break;
+				case sizeof(Uint64): COPYMACRO_3D(Uint16, Uint64)  break;
 				default:
 					if(!PySurface_Unlock(surfobj)) return NULL;
 					return RAISE(PyExc_ValueError, "unsupported datatype for array\n");
 				case sizeof(Uint8):  COPYMACRO_2D_24(Uint8)  break;
 				case sizeof(Uint16): COPYMACRO_2D_24(Uint16)  break;
 				case sizeof(Uint32): COPYMACRO_2D_24(Uint32)  break;
+				case sizeof(Uint64): COPYMACRO_2D_24(Uint64)  break;
 				default:
 					if(!PySurface_Unlock(surfobj)) return NULL;
 					return RAISE(PyExc_ValueError, "unsupported datatype for array\n");
 				case sizeof(Uint8): COPYMACRO_3D_24(Uint8)  break;
 				case sizeof(Uint16):COPYMACRO_3D_24(Uint16)  break;
 				case sizeof(Uint32):COPYMACRO_3D_24(Uint32)  break;
+				case sizeof(Uint64):COPYMACRO_3D_24(Uint64)  break;
 				default:
 					if(!PySurface_Unlock(surfobj)) return NULL;
 					return RAISE(PyExc_ValueError, "unsupported datatype for array\n");
 				case sizeof(Uint8):  COPYMACRO_2D(Uint32, Uint8)  break;
 				case sizeof(Uint16): COPYMACRO_2D(Uint32, Uint16)  break;
 				case sizeof(Uint32): COPYMACRO_2D(Uint32, Uint32)  break;
+				case sizeof(Uint64): COPYMACRO_2D(Uint32, Uint64)  break;
 			default:
 					if(!PySurface_Unlock(surfobj)) return NULL;
 					return RAISE(PyExc_ValueError, "unsupported datatype for array\n");
 				case sizeof(Uint8): COPYMACRO_3D(Uint32, Uint8)  break;
 				case sizeof(Uint16):COPYMACRO_3D(Uint32, Uint16)  break;
 				case sizeof(Uint32):COPYMACRO_3D(Uint32, Uint32)  break;
+				case sizeof(Uint64): COPYMACRO_3D(Uint32, Uint64)  break;
 				default:
 					if(!PySurface_Unlock(surfobj)) return NULL;
 					return RAISE(PyExc_ValueError, "unsupported datatype for array\n");