Skip to content

Conversation

oxillo
Copy link
Contributor

@oxillo oxillo commented Aug 19, 2023

Fix #7590

@oxillo oxillo marked this pull request as draft August 19, 2023 08:14
oxillo added 9 commits August 19, 2023 10:27
previous method depended on name specifed by the user  in .rc file.
The new method is independant of it.
setting icon will only work on targets that have it defined.
Does nothing on targets that do not define it.
Defined for TARGET_WIN32 or TARGET_LINUX
Avoid rescaling as done internally by OS.
Use original image size.
@oxillo oxillo marked this pull request as ready for review August 23, 2023 12:34
@ofTheo ofTheo added this to the 0.12.1 milestone Aug 28, 2023
@ofTheo
Copy link
Member

ofTheo commented Aug 28, 2023

@oxillo going to wait on this for 0.12.1 ( shortly after 0.12.0 ) just incase there are breaking issues on other platforms.
( I noticed ofIcon.cpp isn't added to the Xcode OF project for example ).

@ofTheo ofTheo mentioned this pull request Aug 28, 2023
54 tasks
@oxillo
Copy link
Contributor Author

oxillo commented Aug 30, 2023

@ofTheo I didn't manage to have Xcode to add it ! As GLFW do not support window icon for MacOs (and Wayland), I've thought it won't be a problem not to include it (use on these platform is guarded by #define)

@@ -411,23 +405,29 @@ void ofAppGLFWWindow::setWindowIcon(const std::string & path){

//------------------------------------------------------------
void ofAppGLFWWindow::setWindowIcon(const ofPixels & iconPixels){
#ifndef TARGET_HAS_WINDOW_ICON
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a ofLogWarning here saying platform doesn't support Window Icons :)

@ofTheo
Copy link
Member

ofTheo commented Sep 28, 2023

Added a comment above but happy to merge once conflicts are resolved.

@ofTheo ofTheo modified the milestones: 0.12.1, 0.13.0 Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSYS2 : default application icon displayed at runtime
2 participants