Ticket #370 (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 (duplicate)

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

06/26/07 13:46:59: Modified by pspuser

I've been testing the code and i think that this only happens with big images, there are also issues when blitting large images with alpha transparency.

06/30/07 17:31:53: Modified by pspuser

I'm porting the game to Oslib

08/26/07 13:10:26: Modified by fraca7

  • status changed from new to closed.
  • resolution set to duplicate.