Merge pull request #1029 from MuTaTeD/master

Fixes BigCursor  Crash on KDE
presentation
Ulrich Huber 7 years ago committed by GitHub
commit dbd26811b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/gui/Cursor.cpp

@ -323,7 +323,7 @@ GdkCursor* Cursor::createHighlighterOrPenCursor(int size, double alpha)
int width = size;
if (big || highlightPosition)
{
height = width = 100;
height = width = 60;
}
// We change the drawing method, now the center with the colored dot of the pen
@ -379,7 +379,7 @@ GdkCursor* Cursor::createHighlighterOrPenCursor(int size, double alpha)
// A yellow transparent circle with no border
cairo_set_line_width(cr, 0);
cairo_set_source_rgba(cr, 255, 255, 0, 0.5);
cairo_arc(cr, centerX, centerY, 45, 0, 2 * 3.1415);
cairo_arc(cr, centerX, centerY, 30, 0, 2 * 3.1415);
cairo_fill_preserve(cr);
cairo_set_source_rgb(cr, 0, 0, 0);
cairo_stroke(cr);

Loading…
Cancel
Save