mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[apps/round_cursor_view] Fix setCursorFrame
Scenario: create a cartesian function and a polar function, then navigate between the 2. The cursor sometimes stays drawn somewhere it shouldn't be.
This commit is contained in:
@@ -55,11 +55,7 @@ void RoundCursorView::setCursorFrame(KDRect f) {
|
||||
ctx->fillRectWithPixels(KDRect(0,0,k_cursorSize, k_cursorSize), m_underneathPixelBuffer, s_cursorWorkingBuffer);
|
||||
// Set the frame
|
||||
m_frame = f;
|
||||
// Draw the cursor
|
||||
KDPoint translation = f.origin().translatedBy(previousRelativeFrame.origin().opposite());
|
||||
ctx->setOrigin(previousFrame.origin().translatedBy(translation));
|
||||
ctx->setClippingRect(previousFrame.translatedBy(translation));
|
||||
drawRect(ctx, f);
|
||||
markRectAsDirty(bounds());
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user