when i open an sdl windows , windowed mode , it
appears
at randon place on the screen…
is it possible to place window sdl at x , y
coordinates
(sorry for my english ) , under sdl or by another way.
under X11 and linux , programming in freepascal…
thanks …___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
T?l?chargez cette version sur http://fr.messenger.yahoo.com
florence blabla wrote:
when i open an sdl windows , windowed mode , it
appears
at randon place on the screen…
is it possible to place window sdl at x , y
coordinates
(sorry for my english ) , under sdl or by another way.
under X11 and linux , programming in freepascal…
thanks …
Initial window placement is the task of the window manager, not the
application itself.
florence blabla wrote:
when i open an sdl windows , windowed mode , it
appears
at randon place on the screen…
is it possible to place window sdl at x , y
coordinates
(sorry for my english ) , under sdl or by another way.
under X11 and linux , programming in freepascal…
thanks …
Do this after SDL_SetVideoMode:
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
int ret;
ret = SDL_GetWMInfo(&info);
if (ret > 0) {
#ifdef unix
if (info.subsystem == SDL_SYSWM_X11) {
info.info.x11.lock_func();
XMoveWindow(info.info.x11.display, info.info.x11.wmwindow,
m_pos_x, m_pos_y);
info.info.x11.unlock_func();
}
#endif
thanks …i will try to convert it in pascal…(hop i can)On Tuesday 08 November 2005 21:24, Bill May wrote:
florence blabla wrote:
when i open an sdl windows , windowed mode , it
appears
at randon place on the screen…
is it possible to place window sdl at x , y
coordinates
(sorry for my english ) , under sdl or by another way.
under X11 and linux , programming in freepascal…
thanks …
Do this after SDL_SetVideoMode:
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
int ret;
ret = SDL_GetWMInfo(&info);
if (ret > 0) {
#ifdef unix
if (info.subsystem == SDL_SYSWM_X11) {
info.info.x11.lock_func();
XMoveWindow(info.info.x11.display, info.info.x11.wmwindow,
m_pos_x, m_pos_y);
info.info.x11.unlock_func();
}
#endif
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
T?l?chargez cette version sur http://fr.messenger.yahoo.com
Hi there,
This is not really related with this specific problem, but just a couple of
questions that have jumped my mind before:
If you use X11 library functions do you need to append a -lXlib yourself or
the -lSDL is enough?
Is there any environment define to know if this is a Unix system we are
compiling in… I generally end up using “#ifndef WIN32”.
Cheers,
RicardoEm Ter?a 08 Novembro 2005 20:24, o Bill May escreveu:
florence blabla wrote:
when i open an sdl windows , windowed mode , it
appears
at randon place on the screen…
is it possible to place window sdl at x , y
coordinates
(sorry for my english ) , under sdl or by another way.
under X11 and linux , programming in freepascal…
thanks …
Do this after SDL_SetVideoMode:
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
int ret;
ret = SDL_GetWMInfo(&info);
if (ret > 0) {
#ifdef unix
if (info.subsystem == SDL_SYSWM_X11) {
info.info.x11.lock_func();
XMoveWindow(info.info.x11.display, info.info.x11.wmwindow,
m_pos_x, m_pos_y);
info.info.x11.unlock_func();
}
#endif
–
There is a natural hootchy-kootchy to a goldfish.
– Walt Disney
uses
xlib,
libc,
sdl;
for pascal…
need help to convert it in pascal (delphi or freepascal)…
thanks…i am not a really good c programmer so i have difficulties to
translate…thanks a lot…On Wednesday 09 November 2005 12:38, Ricardo Cruz wrote:
Hi there,
This is not really related with this specific problem, but just a couple
of questions that have jumped my mind before:
If you use X11 library functions do you need to append a -lXlib yourself
or the -lSDL is enough?
Is there any environment define to know if this is a Unix system we are
compiling in… I generally end up using “#ifndef WIN32”.
Cheers,
Ricardo
Em Ter?a 08 Novembro 2005 20:24, o Bill May escreveu:
florence blabla wrote:
when i open an sdl windows , windowed mode , it
appears
at randon place on the screen…
is it possible to place window sdl at x , y
coordinates
(sorry for my english ) , under sdl or by another way.
under X11 and linux , programming in freepascal…
thanks …
Do this after SDL_SetVideoMode:
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
int ret;
ret = SDL_GetWMInfo(&info);
if (ret > 0) {
#ifdef unix
if (info.subsystem == SDL_SYSWM_X11) {
info.info.x11.lock_func();
XMoveWindow(info.info.x11.display, info.info.x11.wmwindow,
m_pos_x, m_pos_y);
info.info.x11.unlock_func();
}
#endif
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
T?l?chargez cette version sur http://fr.messenger.yahoo.com
Ricardo Cruz wrote:
Hi there,
This is not really related with this specific problem, but just a couple of
questions that have jumped my mind before:
If you use X11 library functions do you need to append a -lXlib yourself or
the -lSDL is enough?
sdl-config --libs has always been enough. Since SDL links to it, libtool
should pick it up.
Is there any environment define to know if this is a Unix system we are
compiling in… I generally end up using “#ifndef WIN32”.
I’ve just used #ifdef unix, but ifndef _WIN32 works as well.
Bill
icculus
November 10, 2005, 1:55am
#8
sdl-config --libs has always been enough. Since SDL links to it, libtool
should pick it up.
It won’t be for long…in normal cases, SDL in CVS doesn’t link directly
to Xlib anymore, but rather loads it at runtime…thus it won’t show up
in sdl-config --libs, either.
–ryan.