Mercurial > minori
comparison dep/animia/src/win/win32.cc @ 198:bc1ae1810855
dep/animia: switch from using classes to global functions
the old idea was ok, but sort of hackish; this method doesn't use classes
at all, and this way (especially important!) we can do wayland stuff AND x11
at the same time, which wasn't really possible without stupid workarounds in
the other method
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 24 Dec 2023 02:59:42 -0500 |
parents | 0fc126d52de4 |
children |
comparison
equal
deleted
inserted
replaced
197:c4ca035c565d | 198:bc1ae1810855 |
---|---|
165 return FALSE; | 165 return FALSE; |
166 | 166 |
167 return TRUE; | 167 return TRUE; |
168 } | 168 } |
169 | 169 |
170 bool Win32WinTools::EnumerateWindows(window_proc_t window_proc) { | 170 bool EnumerateWindows(window_proc_t window_proc) { |
171 if (!window_proc) | 171 if (!window_proc) |
172 return false; | 172 return false; |
173 | 173 |
174 const auto param = reinterpret_cast<LPARAM>(&window_proc); | 174 const auto param = reinterpret_cast<LPARAM>(&window_proc); |
175 | 175 |