Comments (7)
Original comment by Thomas Kluyver (Bitbucket: takluyver, GitHub: takluyver):
Removing version: unspecified (automated comment)
from pygame.
Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):
Merged in OPiMedia/pygame (pull request #30)
Bug fix: Red and green channels inversion on AMD 64 (see issue #39).
from pygame.
Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):
Bug fix: Red and green channels inversion on AMD 64 (see issue #39).
from pygame.
Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):
Merged in OPiMedia/pygame (pull request #30)
Bug fix: Red and green channels inversion on AMD 64 (see issue #39).
from pygame.
Original comment by Olivier Pirson (Bitbucket: OPiMedia, GitHub: OPiMedia):
I have the same problem (save PNG reverse channels) with this configuration:
- Debian Wheezy AMD 64
- Python 3.2.3 (default, Feb 20 2013, 14:44:27) [GCC 4.7.2]
- Pygame 1.9.2a0
It's ok with:
- Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2]
- Pygame 1.9.1release
from pygame.
Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):
Fixed SDL_BIG_ENDIAN bug for png write. Fixes and closes #39
from pygame.
Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):
Thanks Jens.
Here is the test code inline the comment to make it easier to see.
import pygame, os
from pygame.locals import *
# Set SDL to use the dummy NULL video driver,
# so it doesn't need a windowing system.
os.environ["SDL_VIDEODRIVER"] = "dummy"
if True:
# Some platforms need to init the display for some parts of pygame.
import pygame.display
pygame.display.init()
screen = pygame.display.set_mode((1,1))
def main():
test = pygame.Surface((256, 256), flags=SRCALPHA, depth=32)
for y in xrange(256):
for x in xrange(256):
test.set_at((x, y), (x,y,(x + y) % 256, (((x ^ y) >> 4) & 1) * 127 + 128))
for ext in ["tga", "png", "bmp", "jpg"]:
pygame.image.save(test, "test.%s" % ext)
if __name__ == "__main__":
main()
It seems the set_at() call does some bit fiddling, which I'm weary of.
Also need to confirm this fails on PPC, which I don't have access too test on.
The test could be changed to read the lossless formats like tga, png and bmp to make sure they read back the colours correctly. Then this could be used as a unit test easily.
from pygame.
Related Issues (20)
- How to prevent pygame loop from crashing when calling an asynchronous machine learning module. HOT 3
- Understanding blit_test.py -> comment of #blend(s, 0, d) = d HOT 1
- Broken link for MacCompile instructions in wiki on Getting Started page
- Broken link for FreeBSD Package in wiki on Getting Started page
- pygame update(rect) problem (macOS) HOT 5
- Behavior change in fullscreen behavior on gaining focus
- PyGame completely broken on Raspberry Pi Bullseye Lite with official Raspberry Pi touch LCD
- pygame doesn't read my controller inputs if I'm inside a game or another program HOT 2
- Add support for Python 3.9 & later!! HOT 5
- camlist is flipped
- Unusual error (error: failed to create renderer) when using pygame.SCALED HOT 7
- Blue value in (R, G, B) color selection has no affect HOT 14
- Not very welcoming discord HOT 2
- pygame.freetype.Font.get_metrics returns the third value in tuple 'min_y' a wrong value
- Just ignore this
- Pygame not installing HOT 1
- Window stops responding randomly when display.flip() is called after a sprite.Group is drawn HOT 1
- Missing pygame.FINGERMOTION events
- Pygame module pygame.threads is missing
- .../3.9/lib/python/site-packages/pygame/pygame_icon.tiff: 'No such file or directory'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygame.