[apps] Shared: resize cross cursor

This commit is contained in:
Émilie Feral
2018-01-25 15:25:21 +01:00
committed by EmilieNumworks
parent 66401fc697
commit d6215d4cc1
2 changed files with 3 additions and 3 deletions

View File

@@ -5,8 +5,8 @@ namespace Shared {
void CursorView::drawRect(KDContext * ctx, KDRect rect) const {
KDCoordinate width = bounds().width();
KDCoordinate height = bounds().height();
ctx->fillRect(KDRect(width/2, 0, 1, height), KDColorBlack);
ctx->fillRect(KDRect(0, height/2, width, 1), KDColorBlack);
ctx->fillRect(KDRect((width-1)/2, 0, 1, height), KDColorBlack);
ctx->fillRect(KDRect(0, (height-1)/2, width, 1), KDColorBlack);
}
KDSize CursorView::minimalSizeForOptimalDisplay() const {