@@ -408,7 +408,7 @@ Bool OptionPreferences::getCursorCaptureEnabledInWindowedGame() const
408408{
409409 OptionPreferences::const_iterator it = find (" CursorCaptureEnabledInWindowedGame" );
410410 if (it == end ())
411- return (CursorCaptureMode_Default & CursorCaptureMode_EnabledInWindowedGame);
411+ return (CursorCaptureMode_Default & CursorCaptureMode_EnabledInWindowedGame) != 0 ;
412412
413413 if (stricmp (it->second .str (), " yes" ) == 0 )
414414 return TRUE ;
@@ -420,7 +420,7 @@ Bool OptionPreferences::getCursorCaptureEnabledInWindowedMenu() const
420420{
421421 OptionPreferences::const_iterator it = find (" CursorCaptureEnabledInWindowedMenu" );
422422 if (it == end ())
423- return (CursorCaptureMode_Default & CursorCaptureMode_EnabledInWindowedMenu);
423+ return (CursorCaptureMode_Default & CursorCaptureMode_EnabledInWindowedMenu) != 0 ;
424424
425425 if (stricmp (it->second .str (), " yes" ) == 0 )
426426 return TRUE ;
@@ -432,7 +432,7 @@ Bool OptionPreferences::getCursorCaptureEnabledInFullscreenGame() const
432432{
433433 OptionPreferences::const_iterator it = find (" CursorCaptureEnabledInFullscreenGame" );
434434 if (it == end ())
435- return (CursorCaptureMode_Default & CursorCaptureMode_EnabledInFullscreenGame);
435+ return (CursorCaptureMode_Default & CursorCaptureMode_EnabledInFullscreenGame) != 0 ;
436436
437437 if (stricmp (it->second .str (), " yes" ) == 0 )
438438 return TRUE ;
@@ -444,7 +444,7 @@ Bool OptionPreferences::getCursorCaptureEnabledInFullscreenMenu() const
444444{
445445 OptionPreferences::const_iterator it = find (" CursorCaptureEnabledInFullscreenMenu" );
446446 if (it == end ())
447- return (CursorCaptureMode_Default & CursorCaptureMode_EnabledInFullscreenMenu);
447+ return (CursorCaptureMode_Default & CursorCaptureMode_EnabledInFullscreenMenu) != 0 ;
448448
449449 if (stricmp (it->second .str (), " yes" ) == 0 )
450450 return TRUE ;
0 commit comments