[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
There is a problem with expressions like:
(onoff == (display->flags & ALLEGRO_FULLSCREEN_WINDOW))
in MSVC, bool is defined to unsigned char and ALLEGRO_FULLSCREEN_WINDOW is 512.
(flags & 512) evaluates to 512
(boo)(flags & 512) evaluates to false
It can be fixed by using ((display->flags & ALLEGRO_FULLSCREEN_WINDOW)
!= 0), awesome -_-
I think we are also leaking out our definition of bool, so it's also
user's problem. Can we just define it to unsigned int?
--
Milan Mimica
http://sparklet.sf.net