[SDL] Re: sdl windows position on screen

florencelaure2002 florencelaure2002 at yahoo.fr
Wed Nov 9 02:56:18 PST 2005


On Tuesday 08 November 2005 21:24, Bill May wrote:
thanks ..i will try to convert it in pascal...(hop i can)



> 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





More information about the SDL mailing list