Source

pygame / src / pgcompat.h

Author Commit Message Labels Comments Date
Lenard Lindstrom
freetype: add Font.path font file path attribute; add vertical argument to Font.__init__
Lenard Lindstrom
Surface.get_view('2') now returns a view for 24 bit surfaces. pixelcopy.map_surface now accepts 24 bit integers in target array. pixelcopy.map_surface properly handles 1 dimensional indices in source array. Color type exports array struct interface; can be used as map_surface source array.
Lenard Lindstrom
Merge the surface_buffer branch back into trunk. 1) Rename module _arraysurfarray to pixelcopy, which implements array_to_surface (blit_surface), surface_to_array, and map_array. 2) Reimplement _numpysurfarray methods array2d, array3d, array_alpha, array_colorkey, and map_surface to use new pixelcopy methods. Module pixelcopy reimplements _numericsurfarray using generic copy methods that accept objects exporting an array struct interface. Along with Surface views, it moves almost all of the _numpysurfarray.py functionality into C code. pixelcopy is also independent of NumPy, so can work with other array like objects.
Lenard Lindstrom
Merge the buffer branch back into trunk. 1) Extend pygame.mixer.Sound() to load samples from an object with an array struct interface or the new buffer protocol. Exports an array struct interface. 2) Update sndarray to use the new Sound features on numpy arrays, removing the Python array manipulation code. 3) Add a new Type, pygame._view.View as a proxy for exporting an array struct interface. 4) Add the pygame.Surface.get_view() method,…
Lenard Lindstrom
small fixes to get Pygame to pass the unit tests on Windows for Python 3.2
Lenard Lindstrom
Use capsule objects in preference to cobject objects. This allows Pygame to build an run from Python 3.2, which has to cobjects.
Lenard Lindstrom
merge fsencoding branch back into trunk, correcting Unicode file path encoding
Lenard Lindstrom
use less cluttered way of adding relative module prefix '.' to module name
Lenard Lindstrom
remove RWopsEncodeFilePath which was prematurely added to rwobject.c
Lenard Lindstrom
add RWopsEncodeFilePath Pygame api function to rwobject
Lenard Lindstrom
corrected encoding of unicode file path strings
Lenard Lindstrom
merging with python3 branch r 2048