You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: HG 2.0 Reported for operating system, platform: Windows 7, x86
Comments on the original bug report:
On 2016-08-05 21:55:51 +0000, Evgeny Vrublevsky wrote:
Created attachment 2539
Patch, default icon is IDI_APPLICATION (32512)
Original code in the video/windows/SDL_windowsevents.c registers obsolete WNDCLASS (not WNDCLASSEX). As the result only one icon size is used as the small and normal icons. Also original code doesn't specify required size of an icon. As the result when 256x256 icon is available, the program uses it as a default icon, and it looks ugly.
We have to use WNDCLASSEX and load icons with proper sizes which we can get using GetSystemMetrics.
Also I propose to use IDI_APPLICATION (32512) as the default icon, because it often is used as a default icon. The patch in the attachment already includes this change.
On 2016-08-05 21:58:14 +0000, Evgeny Vrublevsky wrote:
Created attachment 2540
Patch, default icon is IDI_APPLICATION (32512)
Last time I had uploaded wrong file. This is the right version.
On 2016-08-05 22:05:57 +0000, Evgeny Vrublevsky wrote:
Created attachment 2541
Patch, default icon is SDL_Appname (SDL_app)
An alternative version. Uses SDL_Appname (SDL_app) as the name of a default icon, like it was before. Bad side of this variant that it is unexpected that changing SDL_Appname requires changing the name of a default icon also. Programmer can forget about it and the window of a game will be without an icon as the result.
On 2016-08-06 07:12:20 +0000, Evgeny Vrublevsky wrote:
Created attachment 2542
Patch, default icon is the first icon, like in the Explorer
Better idea. We could use the first icon from resources, like the Explorer does. Patch is included. It also correctly loads large and small icons, so it will look nice everywhere.
On 2016-08-08 14:04:08 +0000, Evgeny Vrublevsky wrote:
When you're writing a game using C# (in Visual Studio), it always uses 32512 (IDI_APPLICATION) as the name of an exe icon. It is not easy to change it.
Proposed solution with using of the first icon of an exe file as a default icon of the window will solve this problem, and it will not break compatibility with programs which are using "SDL_APP" as the resource name of an icon.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Patch, default icon is IDI_APPLICATION (32512) (sdl2_wndposfix.diff, text/plain, 2016-08-05 21:55:51 +0000, 497 bytes)Reported in version: HG 2.0
Reported for operating system, platform: Windows 7, x86
Comments on the original bug report:
On 2016-08-05 21:55:51 +0000, Evgeny Vrublevsky wrote:
On 2016-08-05 21:58:14 +0000, Evgeny Vrublevsky wrote:
On 2016-08-05 22:05:57 +0000, Evgeny Vrublevsky wrote:
On 2016-08-06 07:12:20 +0000, Evgeny Vrublevsky wrote:
On 2016-08-08 14:04:08 +0000, Evgeny Vrublevsky wrote:
On 2016-10-01 20:17:28 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: