Strange behavior of SDL_SetVideoMode in BeOS R5

Hi guys!
I and one of my friends are making a SCUMM resource viewer, and we
encountered a strange behavior of that function.

If I do a “SDL_SetVideoMode(8, 8, (doesn’t mind what bpp or surface))”, I get
a 24x24 window (but can draw just on the first 8x8 pixels). So I can’t have a
window of less than 24x24 pixels.
This happens just on BeOS (my friend uses a linux box, and don’t have this
problem).
Is it a BeOS limitation?
I’m using SDL version 1.2.2.–
“Sai cosa dice il vecchio Jack Burton, in situazioni come questa?
Il vecchio Jack dice sempre… Basta, adesso…”

  • Powered by BeOS *

If I do a “SDL_SetVideoMode(8, 8, (doesn’t mind what bpp or surface))”, I get
a 24x24 window (but can draw just on the first 8x8 pixels). So I can’t have a
window of less than 24x24 pixels.
This happens just on BeOS (my friend uses a linux box, and don’t have this
problem).

You want…an eight-by-eight video surface?

It’s likely a bug in SDL, but…an 8x8 video surface? I wouldn’t be able
to find the window on my monitor.

–ryan.

a 24x24 window (but can draw just on the first 8x8 pixels). So I can’t have a
window of less than 24x24 pixels.

this is surely a ‘minimum window size’ issue. you’ll also run across
this on windows, where windows won’t really let the window get smaller
then 50 or so pixels wide. perhaps if you opened the window with the
SDL_NOFRAME option, the window manager would allow you to create the
tiny sized window?

Hi guys!
I and one of my friends are making a SCUMM resource viewer, and we
encountered a strange behavior of that function.

If I do a “SDL_SetVideoMode(8, 8, (doesn’t mind what bpp or surface))”, I get
a 24x24 window (but can draw just on the first 8x8 pixels). So I can’t have a
window of less than 24x24 pixels.
This happens just on BeOS (my friend uses a linux box, and don’t have this
problem).
Is it a BeOS limitation?
I’m using SDL version 1.2.2.–
“Sai cosa dice il vecchio Jack Burton, in situazioni come questa?
Il vecchio Jack dice sempre… Basta, adesso…”

  • Powered by BeOS *

then 50 or so pixels wide. perhaps if you opened the window with the
SDL_NOFRAME option, the window manager would allow you to create the
tiny sized window?

Just tried. Same thing as before.–
“Sai cosa dice il vecchio Jack Burton, in situazioni come questa?
Il vecchio Jack dice sempre… Basta, adesso…”

  • Powered by BeOS *

There actually seems to be a similar limitation under Linux, with some
versions of KDE. I hade some application with a window that was a few
hundred pixels wide but only 16 pixel tall, and it freaked out on one
KDE/Linux system, but not on the one I wrote it on… (Also KDE/Linux.)

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Thursday 04 October 2001 23:44, Jack Burton wrote:

Hi guys!
I and one of my friends are making a SCUMM resource viewer, and we
encountered a strange behavior of that function.

If I do a “SDL_SetVideoMode(8, 8, (doesn’t mind what bpp or surface))”,
I get a 24x24 window (but can draw just on the first 8x8 pixels). So I
can’t have a window of less than 24x24 pixels.
This happens just on BeOS (my friend uses a linux box, and don’t have
this problem).
Is it a BeOS limitation?
I’m using SDL version 1.2.2.