summaryrefslogtreecommitdiffstats
path: root/src/libs/greycstoration/CImg.h
diff options
context:
space:
mode:
authorTDE Weblate <[email protected]>2025-03-15 13:04:23 +0000
committerMichele Calgaro <[email protected]>2025-03-19 13:12:11 +0900
commit8b3a88df55c67e3e75b93385db1c4f27f409a06f (patch)
tree8427cf9e4892c66674645e7152c3246a334bd165 /src/libs/greycstoration/CImg.h
parent0b5e696d79ab1a160293d520b7526e031238989a (diff)
downloaddigikam-rename/true-false.tar.gz
digikam-rename/true-false.zip
Update translation filesrename/true-false
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: applications/digikam Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/applications/digikam/
Diffstat (limited to 'src/libs/greycstoration/CImg.h')
-rw-r--r--src/libs/greycstoration/CImg.h22
1 files changed, 11 insertions, 11 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];