Mail Archives: djgpp/1997/08/09/14:37:34
SWars Matt writes:
>Is there any way I could use a separate palette for the image and the
Not at the same time. The palette is a single global resource of the
graphics card, so you can only use one at any given moment. You'll just
have to make sure your palette contains some suitable colors for the GUI
to use (you can tell it which they are by setting the globals
gui_fg_color and gui_bg_color).
>Also, when I have the Allegro keyboard routines installed, scanf
>doesn't seem to work properly, I guess because all the keystrokes are
>stored to the keyboard buffer.
When Allegro installs a keyboard handler, it grabs all keyboard input
for itself, so the original BIOS input routines (as used by scanf())
will never see any keypresses. Either don't use scanf(), or don't use
the Allegro keyboard code: it is an all-or-nothing situation. There is
no easy way around this...
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -