From 7eacd1b15dc9f57dc549701d4a40165db12f4ef4 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 13 Jan 2017 17:10:16 +0100 Subject: [PATCH] Restored cursor in OpenGL canvas (still an issue with subpixel AA) --- common/gal/opengl/opengl_gal.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index e8ec21d5f1..2cd59d355d 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -355,7 +355,7 @@ void OPENGL_GAL::EndDrawing() compositor->DrawBuffer( mainBuffer ); compositor->DrawBuffer( overlayBuffer ); compositor->Present(); - //blitCursor(); + blitCursor(); SwapBuffers(); GL_CONTEXT_MANAGER::Get().UnlockCtx( glPrivContext ); @@ -1202,9 +1202,9 @@ void OPENGL_GAL::DrawCursor( const VECTOR2D& aCursorPosition ) { // Now we should only store the position of the mouse cursor // The real drawing routines are in blitCursor() - VECTOR2D screenCursor = worldScreenMatrix * aCursorPosition; - - cursorPosition = screenWorldMatrix * VECTOR2D( screenCursor.x, screenSize.y - screenCursor.y ); + //VECTOR2D screenCursor = worldScreenMatrix * aCursorPosition; + //cursorPosition = screenWorldMatrix * VECTOR2D( screenCursor.x, screenCursor.y ); + cursorPosition = aCursorPosition; }