-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[WIP] Set application icon in glfw #7602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
build RGBA icon list and use it as icon for GLFW
…orks into Issue7590_glfwIcon
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 going to wait on this for 0.12.1 ( shortly after 0.12.0 ) just incase there are breaking issues on other platforms. |
@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 |
There was a problem hiding this comment.
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 :)
Added a comment above but happy to merge once conflicts are resolved. |
Fix #7590