OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> A Questions of libSDL
hilarycheng
post Oct 14 2004, 07:48 AM
Post #1





Group: Members
Posts: 41
Joined: 23-September 04
Member No.: 4,742



I am writing Apple][ Emulator. I can run it at X11 w/o any problem. But when I run it at Zaurus with libSDL, I found that nths draw on the screen and I can't the screen anyway. the screen is keep freeze.

here is my step of using libSDL

use SDL_Init to init SDL
use SDL_SetVideoMode to setup video mode (I try both 640x480 or 640x400 for 16 bit)
get pointer from pixel buffer from SDL_Surface->pixels
when I fill the screen, I use SDL_LockSurface before touching the buffer.
I release it after I draw the screen.

What do I miss ?

-----------------
ZaurusHK

http://led.e-fever.org/zaurus/
Go to the top of the page
 
+Quote Post
bubufr
post Oct 14 2004, 12:01 PM
Post #2





Group: Members
Posts: 1
Joined: 7-October 04
Member No.: 4,915



Hi,

I add the same issue (with libSDL 1.2.7, compiled from official sources). I found this interesting info on a SDL mailing list (http://twomix.devolution.com/pipermail/sdl/2003-January/051398.html):

---
Except for the above modifications, Qtopia port of SDL works pretty
fine and I can enjoy many games in VGA screen on SL-C700 as in the
desktop environment, although I have to allocate an image buffer as
SDL_SetVideoMode( 480, 640, 16, SDL_SWSURFACE) and rotate the VGA
(640x480) screen CW before calling SDL_UpdateRect().
---

And actually, if I try this video mode, I have a better behaviour than with 640x480 (I can display some things on the screen, but as if it was in portrait mode, which makes it unusable)

Unfortunately, I do not quite understand what the author means by "rotate the VGA screen before calling SDL_UpdateRect()"
Go to the top of the page
 
+Quote Post
hilarycheng
post Oct 14 2004, 05:23 PM
Post #3





Group: Members
Posts: 41
Joined: 23-September 04
Member No.: 4,742



thx for your information. Finally, I found out that I should place SDL_PollEvent when I draw into the buffer........ It believes different from x11 SDL.......
Go to the top of the page
 
+Quote Post
guylhem
post Oct 15 2004, 01:17 PM
Post #4





Group: Members
Posts: 577
Joined: 17-March 04
Member No.: 2,365



Would you know why I have 20 pixels from the extreme left side displayed on the extreme right side in portrait mode 240x320 on the sl6000 ? I would like to use 480x640 but all I get is a black screen :-/

Some coding help would be welcome.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th December 2014 - 02:57 AM