Questions from a newbie

  1. I read LGPL license…but some (main?!) points are still obscure to me.
    Can i use SDL for a commercial application without paying any money
    to the author? :))

Yes, you just have to include the source to the version of SDL that you use,
and allow people to recompile SDL and use it with your application.
(i.e. load it as a shared library)

I personally would love a copy of your game, when it’s done. :slight_smile:

  1. How can I open a 320x200 full screen on X with SDL?
    I mean, i tried to open it, but all i get is a 640x480 screen with
    a 320x200 ‘window’ located at center.

This is a limitation of X. You need to put a 320x200 video mode line in
your XF86Config file. I don’t have one offhand. Anyone?

And…i have to click one time left mouse button if i want to make
that window ‘visible’ the first time.

This sounds like a bug.
What video hardware do you have?

3)I can’t imagine that only ONE person (Sam Latinga) did all this work
and released it for free, i’m really stunned :slight_smile:

Some (very helpful) people have submitted patches, but the bulk of the
work was done by me, yes. :slight_smile:

I couldn’t have done it without everyone’s help, support and encouragement. :slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Try running the program as root. If your not root you can’t use X’s DGA and
get fullscreen. If your not root, sdl will probably fallback to a window.

-Garrett, WPI student majoring in Computer Science.

“He who joyfully marches in rank and file has already earned
my contempt. He has been given a large brain by mistake, since
for him the spinal cord would suffice.” -Albert EinsteinOn Mon, 02 Aug 1999, you wrote:

  1. How can I open a 320x200 full screen on X with SDL?
    I mean, i tried to open it, but all i get is a 640x480 screen with
    a 320x200 ‘window’ located at center.
    And…i have to click one time left mouse button if i want to make
    that window ‘visible’ the first time.

Hello!

I started to use linux some months ago (but i still use my
amiga) and now i have to make a porting of a commercial game written
by a friend of mine under amiga. (u can give a look at
http://www.made.net/~arcadia)
I have to port it from amiga to pc (win/linux both) and so i surfed
the web looking for a nice game sdk for linux.
I found this very cool library called SDL, it seems very powerful
and simple to use.
More, it should be possible to use SDL on linux for an application
that doesnt make OS (Unix) calls, and port that application
on window 95/98 without many problems…and this is very COOOL for me, so i
havent to code 2 versions of the same game :slight_smile:
Now, i have some questions about SDL that don’t get an answer after
reading FAQ, so, if there are other FAQs regarding SDL, please
tell me, i’ll not bother u with other dumb questions.

  1. I read LGPL license…but some (main?!) points are still obscure to me.
    Can i use SDL for a commercial application without paying any money
    to the author? :))

  2. How can I open a 320x200 full screen on X with SDL?
    I mean, i tried to open it, but all i get is a 640x480 screen with
    a 320x200 ‘window’ located at center.
    And…i have to click one time left mouse button if i want to make
    that window ‘visible’ the first time.

3)I can’t imagine that only ONE person (Sam Latinga) did all this work
and released it for free, i’m really stunned :slight_smile:

ciao,
Marco

Hello Sam

I personally would love a copy of your game, when it’s done. :slight_smile:

absolutely :slight_smile:

  1. How can I open a 320x200 full screen on X with SDL?
    I mean, i tried to open it, but all i get is a 640x480 screen with
    a 320x200 ‘window’ located at center.

This is a limitation of X. You need to put a 320x200 video mode line in
your XF86Config file. I don’t have one offhand. Anyone?

10x…i’ll catch that line somewhere :slight_smile:

And…i have to click one time left mouse button if i want to make
that window ‘visible’ the first time.

This sounds like a bug.
What video hardware do you have?

a plain s3 virge dx (4mega on board)

ciao,
MarcoOn 02-Ago-99, you wrote:

Marco Salvi wrote:

Hello!

  1. I read LGPL license…but some (main?!) points are still obscure to me.
    Can i use SDL for a commercial application without paying any money
    to the author? :))
    Yes
  1. How can I open a 320x200 full screen on X with SDL?
    I mean, i tried to open it, but all i get is a 640x480 screen with
    a 320x200 ‘window’ located at center.
    And…i have to click one time left mouse button if i want to make
    that window ‘visible’ the first time.
    I think you X-sever has to have this small resolution enabled.

Bye, Karl.

3)I can’t imagine that only ONE person (Sam Latinga) did all this work
and released it for free, i’m really stunned :slight_smile:

Welcome to the world of open source and co-operative development.
Enjoy your stay :)–
±---------------------------------------------------------+
Paul Furber, TML Trade Publishing
"I’ll tell you what’s wrong with the scientific power you’re
wielding - it didn’t require any discipline to attain it"
Dr. Malcom, Jurassic Park

Hi there…

Paul Furber wrote:

3)I can’t imagine that only ONE person (Sam Latinga) did all this work
and released it for free, i’m really stunned :slight_smile:

Welcome to the world of open source and co-operative development.
Enjoy your stay :slight_smile:

Since you’re new in the Brave GNU world (hehe) of free software, it’s time
for a full introduction to the licensing system and philosophy behind it. Go
check out http://www.gnu.org/ - the GNU project was the originator of all
this kind of stuff. Read the ‘Why we exist’ section, which nicely summarises
the ideas behind open source/free software.

And of course, never forget to thank Sam for writing this wonderful library
:slight_smile:

:slight_smile:
Peter>


±---------------------------------------------------------+
Paul Furber, TML Trade Publishing
"I’ll tell you what’s wrong with the scientific power you’re
wielding - it didn’t require any discipline to attain it"
Dr. Malcom, Jurassic Park

Peter Hawkins
Internet Solutions Australia
peterh at isa.net.au