summaryrefslogtreecommitdiff
path: root/kmscube/cube-x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmscube/cube-x11.cpp')
-rw-r--r--kmscube/cube-x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmscube/cube-x11.cpp b/kmscube/cube-x11.cpp
index ae018ea..eb57616 100644
--- a/kmscube/cube-x11.cpp
+++ b/kmscube/cube-x11.cpp
@@ -13,7 +13,7 @@ using namespace std;
static void main_loop(Display* dpy, xcb_connection_t* c, xcb_window_t window, uint32_t width, uint32_t height)
{
EglState egl(dpy);
- EglSurface surface(egl, (void*)(uintptr_t)window);
+ EglSurface surface(egl, reinterpret_cast<void*>(static_cast<uintptr_t>(window)));
GlScene scene;
scene.set_viewport(width, height);