 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Kameku
Joined: 23 Mar 2006 Posts: 32 Location: Oregon, USA
|
Posted: Mon Mar 27, 2006 11:24 am Post subject: Issues with Blitting |
|
|
Okay, so, in my code, I have a segment that looks like this:
| Code: | drop = Image.load("gui/dropper.png")
crange = Image.load("gui/colors.png") |
And then later, I have a part that looks like this:
| Code: | 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: | 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? |
|
| Back to top |
|
 |
glynnder
Joined: 04 Sep 2005 Posts: 35
|
Posted: Mon Apr 03, 2006 10:26 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
JorDy
Joined: 11 Dec 2005 Posts: 121
|
Posted: Tue Apr 04, 2006 1:12 am Post subject: |
|
|
Lua IS case sensitive so its
screen:waitVblankStart([number]) |
|
| Back to top |
|
 |
Kameku
Joined: 23 Mar 2006 Posts: 32 Location: Oregon, USA
|
Posted: Tue Apr 04, 2006 4:20 pm Post subject: |
|
|
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. :] |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|