Mail Archives: djgpp/2000/10/14/20:45:09
On Sun, 15 Oct 2000 00:30:20 +1300, "Edmund Horner"
<ejrh AT paradise DOT net DOT nz> wrote:
>1. I have a disquieting feeling that doing graphics stuff in Linux
>is tricky. For example when I try to run the examples that come
>with the Allegro WIP, I get errors about Mode-X (this only happens
>for some of the examples). Does a program need to do stuff with
>permissions in order to change video mode, or something?
If you run Allegro programs in the console, you need suid root for
everything except framebuffer. Any user can run an Allegro program
in an X11 window; DGA needs suid root.
>2. Backslash-newlines, which i use occassionally for the more
>complicated #defines, aren't recognised by cpp, apparently because of
>the CRLF problem. Is there a simple way I can get around this?
Remove the CRs with dtou.
>3. Lots of functions I use often in DJGPP, usually in connection with files,
>simply don't exist in the linux library.
The Allegro library has its own portable filesystem layer. For
example, instead of findfirst() and the like, I use for_each_file().
--
<O
( \ GNOME vs. KDE: the game!
X http://pineight.8m.com/nes.htm
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
- Raw text -