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 

PSP OSK in 3.03OE

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



Joined: 06 Nov 2005
Posts: 87

PostPosted: Sun Mar 25, 2007 10:35 am    Post subject: PSP OSK in 3.03OE Reply with quote

I've read up on getting the PSPs builtin OSK to work, and on 3.03OE, as far as I know, the only way is to build it as a PRX and run it in 3.03 mode.
I dont really mind this, but what I'm facing is what I believe a memory issue. memalign fails when trying to create a 128x128 image from graphics.c. However, it succeeds creating a 32x32 image.

So I am wondering if anyone knows how to get the OSK to work on 3.03OE in 1.50 mode?

Thanks.


Last edited by youresam on Sun Mar 25, 2007 10:39 am; edited 1 time in total
Back to top
View user's profile Send private message AIM Address
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Sun Mar 25, 2007 10:37 am    Post subject: Re: PSP OSK in 3.03OE Reply with quote

edit...double post?
Back to top
View user's profile Send private message AIM Address
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sun Mar 25, 2007 7:16 pm    Post subject: Reply with quote

PRX default to only having 64KB of heap, 128x128x4 is 64KB so you stand no chance of allocating that.

To get more put somewhere at the top of your main source file
Code:
PSP_HEAP_SIZE_KB(1024)

That will give you a 1MB heap, obviously if you need more then play with the value.
Back to top
View user's profile Send private message
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Mon Mar 26, 2007 4:00 am    Post subject: Reply with quote

Ah, thank you TyRaNiD
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 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