Procházet zdrojové kódy

Fixed contradictory type from automatic text replacement in X11 wrapper.

David Piuva před 6 dny
rodič
revize
af922b5b4e
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      Source/windowManagers/X11Window.cpp

+ 3 - 3
Source/windowManagers/X11Window.cpp

@@ -194,7 +194,7 @@ dsr::PackOrderIndex X11Window::getColorFormat_locked() {
 		visualRequest.depth = 32;
 		visualRequest.c_class = TrueColor;
 		int32_t visualCount;
-		dsr::PackOrderIndex result = dsr::PackOrderIndex::RGBA;
+		dsr::PackOrderIndex result = dsr::PackOrderIndex::RGBA;
 		XVisualInfo *formatList = XGetVisualInfo(this->display, VisualScreenMask | VisualDepthMask | VisualClassMask, &visualRequest, &visualCount);
 		if (formatList != nullptr) {
 			for (int32_t i = 0; i < visualCount; i++) {
@@ -222,7 +222,7 @@ dsr::PackOrderIndex X11Window::getColorFormat_locked() {
 			}
 			XFree(formatList);
 		} else {
-			visualRequest.depth = 24;
+			visualRequest.depth = 24;
 			XVisualInfo *formatList = XGetVisualInfo(this->display, VisualScreenMask | VisualDepthMask | VisualClassMask, &visualRequest, &visualCount);
 			if (formatList != nullptr) {
 				for (int32_t i = 0; i < visualCount; i++) {
@@ -768,7 +768,7 @@ static int32_t destroyXImage(XImage *image) {
 void X11Window::resizeCanvas(int32_t width, int32_t height) {
 	lockWindow();
 		if (this->display) {
-			unsigned int32_t defaultDepth = DefaultDepth(this->display, XDefaultScreen(this->display));
+			int defaultDepth = DefaultDepth(this->display, XDefaultScreen(this->display));
 			// Get the old canvas
 			dsr::AlignedImageRgbaU8 oldCanvas = this->canvas[this->showIndex];
 			for (int32_t b = 0; b < bufferCount; b++) {