Note: In the very beginning of the loading process, the spring logo & text will be shown anyway, of course, as we first have to init VFS & Lua and load the game archive.
Please test this now, for example with [http://springrts.com/phpbb/viewtopic.php?p=493350#p493350]the current engine test release[/url], and report back here if it does not work.
Last edited by hoijui on 29 Jun 2011, 15:06, edited 1 time in total.
How hard would it be to allow the momentary flash to go for games that have prepackaged installers? Is recompilation with a custom icon the only option?
ahh nice! thanks for testing, knorke! and yeah.. that is what i would expect... i guess i read the string parameters wrong (given to the Lua function). i'll check...
code looks correct to me (also compared to other functions with two string arguments). :/ Could also be a decision by WinXP, or a problem with SDL (first one being more likely).
i wrote a test widget too, and i was able to verify that the two strings are handed over to the SDL function as intended. Documentation of that function is here: http://sdl.beuc.net/sdl.wiki/SDL_WM_SetCaption (the icon parameter is called titleShort in spring)
Maybe i am reading the docu wrong, but i was not able to get the short title displayed anywhere, whether the window was open or minimized (on Linux). so i guess we can just forget about the shortTitle then.
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
I could not get it to work in my own SDL app either. I think the second paramete is actually not shortTitle but the name of an icon in a resource file or something.
icon is a UTF-8 encoded null-terminated string which will serve as the iconified window title (the text which is displayed in the menu bar or desktop when the window is minimized).
The Window Title is the title that is on the top of the window in the titlebar. The Icon Title is the name it is given when refering to it in the system. {Check?} (In linux, at least in GNOME, the Icon Title shows up in the task bar while the window title shows up in the title bar [yay, I checked something ^_^]) (on OS X, at least in Tiger ;->, the Icon Title shows up when you hover over the app's dock icon [yay, I checked something, too!])
i did only test on KDE, not Gnome so far. this sounds like it would work as expected under Gnome and OS X.
conclusion: "Icon Title" may only ever be used under X11 (with SDL 1.2).
The reason why even under windows, SDL_WM_GetCaption returns the correct values, set previously with SDL_WM_SetCaption: We call a common function SDL_WM_SetCaption in src/video/SDL_video.c, which stores the two strings and passes them on the *_Set(WM)?Caption function (eg WIN_SetWMCaption), specific to the underlying window manager. So the strings are always stored within SDL, but only used seldom for real by the underlying system (which is what we would care about).
i am not sure anymore where the restriction to BMP comes from. i think it is the windows implementaiton of SDL, or maybe some Win XP limitation ... i know that on linux, it is no problem to use PNG's with transparency. i tested that. as you can see in the docu about the SDL function, it is not possible to supply different icons for different sizes, which makes sense, as it would be irritating for the user to see one process to have different images in different places.
hmm... it does not have to be BMP. docu just sais, how the image will be read, if you use a BMP. It has to be 24bit or 32bit (all systems) and 32x32 (on windows), though.
SDL enforces a single image; not merely a single file, but a single array of pixel data, making up an image. it is not possible to use different sized images at the same time, which i think is right.
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum