Skip to content

Instantly share code, notes, and snippets.

View seventh-chord's full-sized avatar

Morten H. Solvang seventh-chord

View GitHub Profile
@seventh-chord
seventh-chord / make_ico.py
Created January 22, 2023 10:14
Combines multiple .png files into a .ico file
# 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)
@seventh-chord
seventh-chord / dsound_example.c
Created April 1, 2018 08:34
Simple dsound example
// 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