Skip to content

Use the V logo as window icon - #210

Open
xRookieFight wants to merge 1 commit into
vlang:masterfrom
xRookieFight:feat/window-icon
Open

xRookieFight wants to merge 1 commit into
vlang:masterfrom
xRookieFight:feat/window-icon

Conversation

@xRookieFight

Copy link
Copy Markdown

Sets the V logo as the window icon. The PNG is embedded with $embed_file and decoded with stbi. If decoding fails, sokol's default icon is used.

@medvednikov medvednikov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed d3e1ce0, including the embedded PNG, RGBA decoding, Sokol icon descriptor, fallback, and pixel lifetime through gg.new_context(). The 200x200 RGBA image and descriptor agree, and the retained pixel buffer remains available for Sokol's startup use. I found no actionable correctness issues in this change. This was a source/API review; I did not run the native window. CI was excluded from the review.

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.

2 participants