diff options
Diffstat (limited to 'src/libs/greycstoration')
-rw-r--r-- | src/libs/greycstoration/CImg.h | 22 | ||||
-rw-r--r-- | src/libs/greycstoration/greycstoration.h | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/libs/greycstoration/CImg.h b/src/libs/greycstoration/CImg.h index 9f6662e1..e7565392 100644 --- a/src/libs/greycstoration/CImg.h +++ b/src/libs/greycstoration/CImg.h @@ -2355,7 +2355,7 @@ namespace cimg_library { #elif cimg_display==2 struct Win32info { HANDLE wait_event; - Win32info() { wait_event = CreateEvent(0,FALSE,FALSE,0); } + Win32info() { wait_event = CreateEvent(0,false,false,0); } }; #if defined(cimg_module) Win32info& Win32attr(); @@ -4518,7 +4518,7 @@ namespace cimg_library { si.cb = sizeof(si); si.wShowWindow = SW_HIDE; si.dwFlags |= SW_HIDE; - const BOOL res = CreateProcess((LPCTSTR)module_name,(LPTSTR)command,0,0,FALSE,0,0,0,&si,&pi); + const bool res = CreateProcess((LPCTSTR)module_name,(LPTSTR)command,0,0,false,0,0,0,&si,&pi); if (res) { WaitForSingleObject(pi.hProcess, INFINITE); CloseHandle(pi.hThread); @@ -8516,8 +8516,8 @@ namespace cimg_library { SetEvent(cimg::Win32attr().wait_event); break; case WM_SETCURSOR : - if (disp->visible_cursor) ShowCursor(TRUE); - else ShowCursor(FALSE); + if (disp->visible_cursor) ShowCursor(true); + else ShowCursor(false); break; } return DefWindowProc(window,msg,wParam,lParam); @@ -8659,8 +8659,8 @@ namespace cimg_library { ((void**)arg)[0]=(void*)this; ((void**)arg)[1]=(void*)title; unsigned long ThreadID = 0; - mutex = CreateMutex(0,FALSE,0); - created = CreateEvent(0,FALSE,FALSE,0); + mutex = CreateMutex(0,false,0); + created = CreateEvent(0,false,false,0); thread = CreateThread(0,0,_events_thread,arg,0,&ThreadID); WaitForSingleObject(created,INFINITE); return *this; @@ -8810,7 +8810,7 @@ namespace cimg_library { CImgDisplay& show_mouse() { if (is_empty()) return *this; visible_cursor = true; - ShowCursor(TRUE); + ShowCursor(true); SendMessage(window,WM_SETCURSOR,0,0); return *this; } @@ -8818,7 +8818,7 @@ namespace cimg_library { CImgDisplay& hide_mouse() { if (is_empty()) return *this; visible_cursor = false; - ShowCursor(FALSE); + ShowCursor(false); SendMessage(window,WM_SETCURSOR,0,0); return *this; } @@ -29236,7 +29236,7 @@ namespace cimg_library { cinfo.err = jpeg_std_error(&jerr); jpeg_create_decompress(&cinfo); jpeg_stdio_src(&cinfo,nfile); - jpeg_read_header(&cinfo,TRUE); + jpeg_read_header(&cinfo,true); jpeg_start_decompress(&cinfo); if (cinfo.output_components!=1 && cinfo.output_components!=3 && cinfo.output_components!=4) { @@ -31544,8 +31544,8 @@ namespace cimg_library { cinfo.input_components = dimbuf; cinfo.in_color_space = colortype; jpeg_set_defaults(&cinfo); - jpeg_set_quality(&cinfo,quality<100?quality:100,TRUE); - jpeg_start_compress(&cinfo,TRUE); + jpeg_set_quality(&cinfo,quality<100?quality:100,true); + jpeg_start_compress(&cinfo,true); const unsigned int row_stride = width*dimbuf; JSAMPROW row_pointer[1]; diff --git a/src/libs/greycstoration/greycstoration.h b/src/libs/greycstoration/greycstoration.h index 36b2c0e2..2076e66d 100644 --- a/src/libs/greycstoration/greycstoration.h +++ b/src/libs/greycstoration/greycstoration.h @@ -327,7 +327,7 @@ static void greycstoration_mutex_create(_greycstoration_params &p) { p.mutex = new pthread_mutex_t; pthread_mutex_init(p.mutex,0); #elif cimg_OS==2 - p.mutex = CreateMutex(0,FALSE,0); + p.mutex = CreateMutex(0,false,0); #endif } } |