Issues with Blitting

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Kameku
Posts: 32
Joined: Thu Mar 23, 2006 12:17 pm
Location: Oregon, USA

Issues with Blitting

Post by Kameku »

Okay, so, in my code, I have a segment that looks like this:

Code: Select all

drop = Image.load("gui/dropper.png")
crange = Image.load("gui/colors.png")
And then later, I have a part that looks like this:

Code: Select all

screen:blit(353,240,drop)
screen:blit(383,240,crange)
BUT, when I run the prog on Windows LuaPlayer, it flashes, and creates a file named "luaplayer.exe.stackdump", which contains

Code: Select all

Stack trace:
Frame     Function  Args
0022EEA8  007F48D6  (00000000, 00000000, 0040C9BE, 0022EF1A)
0022EEE8  0040CB66  (00000002, 10030EF8, 10030090, 610A5E22)
0022EFD8  61004DD2  (0022EFF0, 000F000E, 00110010, 00130012)
0022FF88  6100594F  (00000000, 00000000, 00000000, 00000000)
End of stack trace
But, when put into comments, all my other images blit fine. Why?
glynnder
Posts: 35
Joined: Sun Sep 04, 2005 9:54 pm

Post by glynnder »

ok i cant tell you completely how to fix it unless u show me your whole script. but the way to stop the screen flashing like that is to add a screen.waitvblankstart(number goes here) somewhere

That should solve ur problem
JorDy
Posts: 121
Joined: Sun Dec 11, 2005 8:45 am

Post by JorDy »

Lua IS case sensitive so its

screen:waitVblankStart([number])
Kameku
Posts: 32
Joined: Thu Mar 23, 2006 12:17 pm
Location: Oregon, USA

Post by Kameku »

Oh, sorry, I figured out the problem ages ago. >_> I had made the image, and for some reason, my computer saved it as "crange.png.bmp"

Thanks for the input, though. :]
Post Reply