Restricting SDL to a Panel within a Window

Hi All,
One of the members of the JEDI-SDL mailing list is having a problem
when trying to restrict the output of SDL to a Panel. If he uses…
SDL_putenv(‘SDL_VIDEODRIVER=windib’);

Everything works fine but if he tries…
SDL_putenv(‘SDL_VIDEODRIVER=directx’);

it crashes.
Does anyone have any suggestions as what may be causing the crash.

Thanks,

Dominique Louis
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;

Dominique Louis wrote:

One of the members of the JEDI-SDL mailing list is having a problem
when trying to restrict the output of SDL to a Panel.

SDL has nothing called “Panel”. Post a minimal, complete testcase (in C)
and we will look at it

Hi All,
One of the members of the JEDI-SDL mailing list is having a problem
when trying to restrict the output of SDL to a Panel. If he uses…
SDL_putenv(‘SDL_VIDEODRIVER=windib’);

Everything works fine but if he tries…
SDL_putenv(‘SDL_VIDEODRIVER=directx’);

it crashes.
Does anyone have any suggestions as what may be causing the crash.

Thanks,

DirectInput (which is used with SDL_VIDEODRIVER=directx) won’t work if you
initialize it with an hwnd that was created with the WS_CHILD style. As
far as I know, there’s no way to tell SDL to use directx for the video
stuff, and the old windows input routines, so you can only do it with
SDL_VIDEODRIVER=windib.

DaveOn Sun, 27 Jan 2002, Dominique Louis wrote:


David MacCormack
@David_MacCormack

In the land of Redmond, where the Windows lie.
One OS to rule them all, One OS to find them,
One OS to bring them all and in the darkness bind them.
In the land of Redmond, where the Windows lie.

Hi David,

David MacCormack wrote:

DirectInput (which is used with SDL_VIDEODRIVER=directx) won’t work if you
initialize it with an hwnd that was created with the WS_CHILD style. As
far as I know, there’s no way to tell SDL to use directx for the video
stuff, and the old windows input routines, so you can only do it with
SDL_VIDEODRIVER=windib.

Yes a Panel is effectively a WS_CHILD has it acts like a container
control within Delphi applications.

Does anyone know if there is likely to be a work around for this at some
point?

Thanks for the information this clears up a lot.

Dominique.
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;