Commit Graph

4 Commits (85290e4d512b822943ea694c8ae4431b214accb4)

Author SHA1 Message Date
Tim Deagan ce5b38d96e Add on-launch code to set Document Icon in windows registry
Since OpenSCAD doesn't distribute with additional image files, this means a new icon needs to be built into the .exe. This is accomplished by adding a line to the end of openscad_win32.rc file consisting of something like the following:
IDI_ICON2 ICON DISCARDABLE "icons/openscad_doc.ico"
which will get built into the exe as icon index 1 (icon index 0 is the current app icon.)

In the cmdline and gui functions in openscad.cc I added code to set the HKEY_CURRENT_USER/Software/Classes/OpenSCAD_File/DefaultIcon/Default value to the icon index 1 of openscad.exe

	modified:   openscad_win32.rc
	modified:   src/openscad.cc
2015-01-11 18:21:08 -06:00
Marius Kintel 91c640fb5e Copyright updates 2011-01-21 02:21:09 +01:00
kintel 9b3d816122 resource and build system update
git-svn-id: http://svn.clifford.at/openscad/trunk@366 b57f626f-c46c-0410-a088-ec61d464b74c
2010-01-30 04:27:59 +00:00
meta f2926d6630 windows msys build script
git-svn-id: http://svn.clifford.at/openscad/trunk@321 b57f626f-c46c-0410-a088-ec61d464b74c
2010-01-15 21:08:18 +00:00