This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Combines PNGs into a .ICO file | |
import sys | |
import struct | |
import traceback | |
if len(sys.argv) < 2: | |
print("Usage: {} <output> <input 1.png> <input 2.png> ...".format(sys.argv[0])) | |
exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Link with user32.lib and dsound.lib | |
#include <windows.h> | |
#include <dsound.h> | |
#define _USE_MATH_DEFINES | |
#include <math.h> | |
#define u8 unsigned __int8 | |
#define u32 unsigned __int32 |