[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Re: Introduction and a game announcement (PySpaceWar 0.9.1)
On Mon, Feb 20, 2006 at 07:20:11PM +0200, Marius Gedminas wrote:
> On Mon, Feb 20, 2006 at 09:11:27AM -0800, Bob the Hamster wrote:
> > >
> > > So here it is, 5 days later: the "month of procrastination" release of
> > > PySpaceWar (also known as 0.9.2):
> > >
> > > * Possibly fix the MacOS X "invisible fix" problem I saw (use 2 x
> > > aaline instead of aalines).
> >
> > Tested in Mac OS X, using the latest svn and I was not able to see my
> > own ship. I could see other shipss, but they were such a dark shade of
> > blue that it was rarely possible to pick them out from the dark
> > background.
>
> Ok, so the fix didn't work. :(
>
> Does anyone have any ideas as to why this happens? Is pygame.draw.aaline
> broken on Mac OS X? I do not have a Mac myself.
>
I manually changed aaline to line, and it made the game playable.
I would not be surprised if there is a pygame-on-mac bug here. I recall
that Surface.set_at() had an endian problem that caused the wrong color
to be set. My guess is that a similar endian bug in aaline is causing
color and alpha to be reversed, making the line invisible (or nearly
invisible, depending on the colors used.)
---
Bob the Hamster