[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
alg4.1.11/src/win/wwnd.c
why are there separate if ( message== statements, then directly after
them there is a switch() ?
wouldn't it be efficient just to put them in the switch also ?
---snippet begins---
/* directx_wnd_proc:
* Window procedure for the Allegro window class.
*/
static LRESULT CALLBACK directx_wnd_proc(HWND wnd, UINT message, WPARAM
wparam, LPARAM lparam)
{
PAINTSTRUCT ps;
if (message == msg_call_proc)
return ((int (*)(void))wparam) ();
if (message == msg_suicide) {
DestroyWindow(wnd);
return 0;
}
switch ( message )