[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] transform.scale() freezes mouse in fullscreen



Thank you for the ideas! I just tried out rotozoom in my program and it
works nicely, and I'll also look in to using python threads.

When I'm done I will be sure to send the program in for inclusion in the
'projects' section of pygame.org :)

> you can look at "transform.rotozoom" which does filtered
> scaling and rotation. you'll find it works a little
> differently than the other scale function, since it only
> takes a "multiplier" for the new image size.
>
> as for the mouse freezing. in fullscreen mode SDL sometimes
> maintains control of the mouse cursor in software. in this
> situation you are seeing the mouse 'freeze'. probably the
> only way to do this is in a separate thread. the image load
> and scale can happen in a separate thread, then the
> interface will remain responsive to user input.
>
>
>