forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

screen:clear() bug in .12?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Sun Nov 06, 2005 2:24 am    Post subject: screen:clear() bug in .12? Reply with quote

Hey everyone, I've ben using luaplayer for about 3 months now, and Im pretty good at it. However, I noticed something in version .12, screen:clear() doesnt work!

Well, it works, but only in the color black. I've tried everything,
---------
white = Color.new(255,255,255)
screen:clear(white)
--------
screen:clear(Color.new(255,255,255))
--------

But it wont clear the screen white!
I was thinking of using the screen:fillRect() function instead...

Any help?
Back to top
View user's profile Send private message AIM Address
Durante



Joined: 02 Oct 2005
Posts: 65
Location: Austria

PostPosted: Sun Nov 06, 2005 3:20 am    Post subject: Reply with quote

That's not really surprising, as the clear method in svn doesn't even use the color ;)

Code:
void clearScreen(Color color)
{
        if (!initialized) return;
        guStart();
        sceGuClearDepth(0);
        sceGuClear(GU_COLOR_BUFFER_BIT|GU_DEPTH_BUFFER_BIT);
        sceGuFinish();
        sceGuSync(0, 0);
}

I guess that needs a
sceGuClearColor(color);
after the sceGuClearDepth(0);
Back to top
View user's profile Send private message
Bob535



Joined: 04 Nov 2005
Posts: 56

PostPosted: Sun Nov 06, 2005 5:20 am    Post subject: Reply with quote

Hmmm, would someone let shine know so we can get this fixed in the next release? It does show in the Lua Functions that it should work just using screen:clear(color)
Back to top
View user's profile Send private message
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Sun Nov 06, 2005 6:22 am    Post subject: Reply with quote

Yeah, I guess Shine missed that...
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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