Skip to content

Commit

Permalink
System wallpaper background
Browse files Browse the repository at this point in the history
Corrected empty line with no shading,
  • Loading branch information
dvhh committed Apr 23, 2015
1 parent 33368f3 commit 886e87f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,7 @@ protected void onDraw(Canvas canvas) {
//backgroundPaint.setAlpha(255 - mBackgroundAlpha);
canvas.drawRect(0,0, w, mTopOfScreenMargin, backgroundPaint);
canvas.drawRect(0,mVisibleRows*mCharacterHeight+mTopOfScreenMargin, w, h, backgroundPaint);
canvas.drawRect(mVisibleColumns*mCharacterWidth,mTopOfScreenMargin,w,mVisibleRows*mCharacterHeight+mTopOfScreenMargin,backgroundPaint);

}
float x = -mLeftColumn * mCharacterWidth;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public final void drawText(int row, Canvas canvas, float x, float y,
renderer.drawTextRun(canvas, x, y, selx1, selx2-selx1,
blank, 0, 1, true, defaultStyle,
cx, 0, 1, 1, cursorMode);
return;
}
if (cx != -1) {
char[] blank = new char[1];
Expand All @@ -198,7 +199,17 @@ public final void drawText(int row, Canvas canvas, float x, float y,
renderer.drawTextRun(canvas, x, y, cx, 1,
blank, 0, 1, true, defaultStyle,
cx, 0, 1, 1, cursorMode);
blank = new char[mColumns];
Arrays.fill(blank, ' ');
renderer.drawTextRun(canvas,x,y,cx,mColumns-cx,blank,cx,blank.length,false,defaultStyle,cx,0,1,1,cursorMode);
return;
}
char[] blank = new char[mColumns];
Arrays.fill(blank, ' ');
renderer.drawTextRun(canvas, x, y, cx, mColumns + 1,
blank, 0, blank.length, false, defaultStyle,
cx, 0, 1, 1, cursorMode);


return;
}
Expand Down

0 comments on commit 886e87f

Please sign in to comment.