Incidentally, this only happens because libSDL uses Xutf8TextListToTextProperty() in SDL_x11vm.c to set the window title. Commented a few lines to make it use XStringListToTextProperty() and using SDL_WM_SetCaption() worked to set the title without any Xlib tricks.
I can't be bothered, personally, to open a bug as I know it will not be fixed for Diablo but (assuming that the Fremantle hildon-desktop doesn't support UTF-8 strings for titles) anyone else is free to open a bug. P.S: Frantisek, have any plans on updating the Game_development wiki page with your tip? It'd help those who do not subscribe here. Best Regards, Faheem On Wed, Apr 29, 2009 at 10:06 PM, Frantisek Dufka <duf...@seznam.cz> wrote: > Faheem Pervez wrote: > > > char *name = "Title to show on first line - Title to show on second > > line" and then pass that char to XStoreName as the third argument: > > Indeed. Thanks for figuring this out. One definitely needs the " - " > part including spaces there. BTW as for the Mikkov's wiki code sample > I've ended with seting both windows at once no mater if fullscreen or > not. This saves me updating title of the other window after each > fullscreen switch. > > win = info.info.x11.fswindow; > if (win) XStoreName(dpy, win, title); > win = info.info.x11.wmwindow; > if (win) XStoreName(dpy, win, title); > > Seems to work for me. > > Frantisek > _______________________________________________ > maemo-developers mailing list > maemo-developers@maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers >
_______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers