paeryn
Reclusive maniac
No problem, I just wanted to check you need a smaller display. I should be able to get the display to do it fairly easily. Initially it might be fixed to the top-left of the display, but with a bit of luck I'll be able to let you choose where on the display to put it.Wild[Kyo said:,Mar 29 2006, 06:38 PM]Again, sorry for my poor english and the explanation of before...
That I wish to say is the last thing you say. Support smaller screen sizes. That is, if I put a screen of 200x200 that the HW Accelerated SDL will don't resize automatically to 320 x 240.
I'll start on it in the morning - I've not had my daily fix of Oblivion today (damn you, Bethesda - you stole so much of my time with Morrowind and now you're doing it again )
Edit:
I think that I've got it how you want. No source yet, that'll be up in a day or two as I need to sort out the cursor to work with this, but pre-compiled is here
I've added functions to handle window regions (as they were needed to do this) - I'll document them later.
The new function you need is SDL_GP2X_MiniDisplay() - it aligns the screen, sets up window region 1 to blank the borders and puts the scaler back to 1:1. This is mutually exclusive with SDL_GP2X_Display() as that is designed to up/down-scale to fullscreen. You can switch between them if you want, but MiniDisplay() doesn't support hardware scrolling / scaling. If anybody wants that let me know.
To use the smaller screen size, after you've created your screen with SetVideoMode() call SDL_GP2X_MiniDisplay(x,y); where x,y is where you want the top-left corner to be on the LCD.
e.g. for your 200x200 screen, if you want it shown in the centre of the display, call SDL_GP2X_MiniDisplay(60,20).
There's not much error detection, so make sure you pass sensible values.
Last edited by a moderator: