diff --git a/apps/shared/round_cursor_view.cpp b/apps/shared/round_cursor_view.cpp index 74661c644..e8bdd2051 100644 --- a/apps/shared/round_cursor_view.cpp +++ b/apps/shared/round_cursor_view.cpp @@ -68,37 +68,9 @@ bool RoundCursorView::eraseCursorIfPossible() { // Erase the cursor KDColor cursorWorkingBuffer[k_cursorSize * k_cursorSize]; KDContext * ctx = KDIonContext::sharedContext(); - ctx->setOrigin(currentFrame.origin()); + ctx->setOrigin(absoluteOrigin()); ctx->setClippingRect(currentFrame); KDSize cursorSize = KDSize(k_cursorSize, k_cursorSize); - - /* We assert that the visible frame is not cropped (indeed a cursor is always - * fully inside the window, thanks to panToMakeCursorVisible). Otherwise, we - * would need to change this algorithm. - * - * +---+ - * | |<- frame m_underneathPixelBuffer: +---+ - * +----+---+--------+ |000| - * | |xxx| |<- parentVisibleFrame |xxx| - * | +---+ | +---+ - * | | - * +-----------------+ - * - * +---+ - * |xxx|: absoluteVisibleFrame - * +---+ - * - * What we would draw with the current algorithm: - * +---+ - * | |<- frame - * +----+---+--------+ - * | |000| |<- parentVisibleFrame - * | +---+ | - * | | - * +-----------------+ - * - * */ - assert(currentFrame.size() == cursorSize); ctx->fillRectWithPixels(KDRect(0, 0, cursorSize), m_underneathPixelBuffer, cursorWorkingBuffer); // TODO Restore the context to previous values? return true;