Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Changing the Icon of exe?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
6 replies to this topic

#1 ParticleGames   Members   

112
Like
0Likes
Like

Posted 17 January 2013 - 07:16 PM

I've been messing around creating programs lately and I decided to change the icon of my program. I'm using a framework called OpenFrameworks, and it uses GLUT/OpenGL for graphics. I managed to change it by adding a rc script to my Visual Studio project that contains:

 

GLUT_ICON ICON src/glut.ico

 

This will change the icon. However, the same icon file will be used universally, so the icon image on the window of my application is shrunk down which causes extreme distortion, and the icon image on my task bar is stretched out. Is there a way to optimize these icons for the different locations they appear? Whether it's via rc scripting or any other route.


Edited by ParticleGames, 20 January 2013 - 02:30 PM.


#2 SiCrane   Moderators   

11761
Like
3Likes
Like

Posted 17 January 2013 - 08:58 PM

A single .ico file can contain multiple images for different resolutions. You just need to find an icon editor that supports this functionality and make the required images for the various necessary resolutions.

#3 ParticleGames   Members   

112
Like
0Likes
Like

Posted 18 January 2013 - 05:18 AM

Ah such a simple answer I was over thinking, thank you! :)

#4 Bacterius   Members   

13164
Like
0Likes
Like

Posted 18 January 2013 - 06:49 AM

Pixelformer is a pretty damn good bare-bones icon editor, and supports multiple-resolution icons. YMMV, of course.


“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”


#5 shuma-gorath   Members   

1161
Like
0Likes
Like

Posted 18 January 2013 - 06:38 PM

Versions of IcoFX before version 2.0 were freeware. You should still be able to find version 1.6.4 online somewhere. It, too, is a lightweight icon editor that supports "packing."

Edited by shuma-gorath, 18 January 2013 - 06:40 PM.


#6 ParticleGames   Members   

112
Like
0Likes
Like

Posted 19 January 2013 - 09:56 PM

So I've come to a half-solution, but I've become stumped again. I used Greenfish Icon Editor to create an icon with the sizes 16x16, 24x24, 32x32, 64x64, and 256x256. The icon almost works. I attached a picture because it's hard to verbally explain the error. It chooses the right icon for the text console, and the quick bar looks fine, but it looks like the GLUT window is trying to use the same one as the quick bar and it looks bad. My resource script is still the same. Here's what it looks like: 

qovpcw.jpg


Edited by ParticleGames, 19 January 2013 - 09:56 PM.


#7 Khatharr   Members   

8637
Like
0Likes
Like

Posted 20 January 2013 - 08:01 AM

You can set the small and large icons explicitly in the WNDCLASSEX struct when creating your window class.


Edited by Khatharr, 20 January 2013 - 08:04 AM.

void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.