comparison src/timer.c @ 1:7abb5d8b20ea v1.0

Initial commit: part 2 I added a config GUI, and actual stuff to the README. The GUI was 'made' in Visual Studio, but I trimmed down the resource file because it had weird VS2010 skid marks all over it.
author Paper <mrpapersonic@gmail.com>
date Sun, 07 Aug 2022 10:23:10 -0400
parents d91dfd53b8b4
children be4835547dd0
comparison
equal deleted inserted replaced
0:d91dfd53b8b4 1:7abb5d8b20ea
2 #ifndef WIN32_LEAN_AND_MEAN 2 #ifndef WIN32_LEAN_AND_MEAN
3 # define WIN32_LEAN_AND_MEAN 3 # define WIN32_LEAN_AND_MEAN
4 #endif 4 #endif
5 #include <windows.h> 5 #include <windows.h>
6 #include "timer.h" 6 #include "timer.h"
7
7 void timer_init(struct timer_t* timer, HWND winampClientWindow, TIMERPROC timer_proc) { 8 void timer_init(struct timer_t* timer, HWND winampClientWindow, TIMERPROC timer_proc) {
8 timer->winampClientWindow = winampClientWindow; 9 timer->winampClientWindow = winampClientWindow;
9 timer->timer_proc = timer_proc; 10 timer->timer_proc = timer_proc;
10 timer->initialized = 1; 11 timer->initialized = 1;
11 } 12 }