OSDN Git Service

[VM][WIN32] config.cpp : Be type BOOL to bool with some config values.
authorKyuma Ohta <whatisthis.sowhat@gmail.com>
Wed, 22 Jul 2015 14:27:18 +0000 (23:27 +0900)
committerKyuma Ohta <whatisthis.sowhat@gmail.com>
Wed, 22 Jul 2015 14:27:18 +0000 (23:27 +0900)
source/src/config.cpp
source/src/config.h

index c2c6646..69a0e5c 100644 (file)
@@ -383,7 +383,7 @@ void load_config()
        // screen
 #if !(defined(USE_BITMAP) || defined(USE_LED))
        config.window_mode = GetPrivateProfileInt(_T("Screen"), _T("WindowMode"), config.window_mode, config_path);
-        config.use_d3d9 = GetPrivateProfileBool(_T("Screen"), _T("UseD3D9"), config.use_d3d9, config_path);
+       config.use_d3d9 = GetPrivateProfileBool(_T("Screen"), _T("UseD3D9"), config.use_d3d9, config_path);
        config.wait_vsync = GetPrivateProfileBool(_T("Screen"), _T("WaitVSync"), config.wait_vsync, config_path);
        config.stretch_type = GetPrivateProfileInt(_T("Screen"), _T("StretchType"), config.stretch_type, config_path);
 #else
index 2de33d5..ceae0b2 100644 (file)
@@ -101,8 +101,8 @@ typedef struct {
 #endif
 #ifdef USE_TAPE
        bool tape_sound;
-        BOOL wave_shaper;
-       BOOL direct_load_mzt;
+       bool wave_shaper;
+       bool direct_load_mzt;
        bool baud_high;
 #endif
        
@@ -137,8 +137,8 @@ typedef struct {
        
        // screen
        int window_mode;
-       BOOL use_d3d9;
-       BOOL wait_vsync;
+       bool use_d3d9;
+       bool wait_vsync;
        int stretch_type;
 #ifdef USE_MONITOR_TYPE
        int monitor_type;
@@ -147,7 +147,7 @@ typedef struct {
        BOOL crt_filter;
 #endif
 #ifdef USE_SCANLINE
-        BOOL scan_line;
+       bool scan_line;
 #endif
        //BOOL cmt_sound;
        //int  cmt_volume;