Ticket #369 (defect)
Opened 1 year ago
Last modified 1 year ago
psp2d - screen blit(dx > 0, dy > 0, blend = True, dw != -1, dh != -1) scaling issue
Status: closed (fixed)
| Reported by: | pspuser | Assigned to: | fraca7 |
|---|---|---|---|
| Priority: | major | Component: | psp2d |
| Version: | current | Keywords: | |
| Cc: |
Hi :)
First of all I would like to thank you for the amazing work you have done porting python to psp.
While testing the scaling feature I've found an issue. If you blit and scale an image to the screen at x=0,y=0 the image is scaled properly, but if you try to blit it to another position, the image is actually clipped.
something like this: http://files.myopera.com/SappYoda/files/test.png
Here's the flawed code:
big = psp2d.Image('big.png')
little = psp2d.Image('little.png')
i = 0
idir = 1
while 1:
self.pantalla.clear(psp2d.Color(0, 0, 0))
self.pantalla.blit(big,0,0,-1,-1,int(i*240/136.0),i,True,240,136)
self.pantalla.blit(little,0,0,-1,-1,int(240-i*240/136.0),136-i,True,240,136)
self.pantalla.swap()
i += idir
if i > 136:
idir = -1
if i < 0:
idir = 1
pad = psp2d.Controller()
if pad.select:
return 1
Change History
08/18/07 15:44:54: Modified by fraca7
- status changed from new to closed.
- resolution set to fixed.

Today's release fixes this.