[neon/kde/kwin/Neon/unstable] debian/patches: fix patch
Jonathan Riddell
null at kde.org
Tue Sep 21 16:01:36 BST 2021
Git commit 17044dc706953d5e19ffd5763b15d35b61289c7b by Jonathan Riddell.
Committed on 21/09/2021 at 15:01.
Pushed by jriddell into branch 'Neon/unstable'.
fix patch
M +8 -8 debian/patches/x11-c-style-cast-egl-native-window
https://invent.kde.org/neon/kde/kwin/commit/17044dc706953d5e19ffd5763b15d35b61289c7b
diff --git a/debian/patches/x11-c-style-cast-egl-native-window b/debian/patches/x11-c-style-cast-egl-native-window
index c22f808..082eb0d 100644
--- a/debian/patches/x11-c-style-cast-egl-native-window
+++ b/debian/patches/x11-c-style-cast-egl-native-window
@@ -1,17 +1,17 @@
diff --git a/src/plugins/platforms/x11/common/eglonxbackend.cpp b/src/plugins/platforms/x11/common/eglonxbackend.cpp
-index 3c4e684f7..32b7c038f 100644
+index 32b7c038f..3c4e684f7 100644
--- a/src/plugins/platforms/x11/common/eglonxbackend.cpp
+++ b/src/plugins/platforms/x11/common/eglonxbackend.cpp
-@@ -221,10 +221,8 @@ EGLSurface EglOnXBackend::createSurface(xcb_window_t window)
+@@ -221,8 +221,10 @@ EGLSurface EglOnXBackend::createSurface(xcb_window_t window)
// eglCreatePlatformWindowSurfaceEXT() expects a pointer to the Window.
surface = eglCreatePlatformWindowSurfaceEXT(eglDisplay(), config(), (void *) &nativeWindow, nullptr);
} else {
-- // eglCreateWindowSurface() expects a Window, not a pointer to the Window. Don't
-- // use reinterpret_cast<>() as there are platforms where the size of the Window is
-- // not the same as the size of EGLNativeWindowType.
-- surface = eglCreateWindowSurface(eglDisplay(), config(), (EGLNativeWindowType) nativeWindow, nullptr);
-+ // eglCreateWindowSurface() expects a Window, not a pointer to the Window.
-+ surface = eglCreateWindowSurface(eglDisplay(), config(), reinterpret_cast<EGLNativeWindowType>(nativeWindow), nullptr);
+- // eglCreateWindowSurface() expects a Window, not a pointer to the Window.
+- surface = eglCreateWindowSurface(eglDisplay(), config(), reinterpret_cast<EGLNativeWindowType>(nativeWindow), nullptr);
++ // eglCreateWindowSurface() expects a Window, not a pointer to the Window. Don't
++ // use reinterpret_cast<>() as there are platforms where the size of the Window is
++ // not the same as the size of EGLNativeWindowType.
++ surface = eglCreateWindowSurface(eglDisplay(), config(), (EGLNativeWindowType) nativeWindow, nullptr);
}
return surface;
More information about the Neon-commits
mailing list