File tree Expand file tree Collapse file tree
app/src/main/java/io/github/yawnoc/strokeinput Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ public void update(final Key key, final int shiftMode) {
6262 return ;
6363 }
6464
65- width = key .width ;
66- height = key .height ;
65+ width = ( int ) ( key .previewMagnification * key . width ) ;
66+ height = ( int ) ( key .previewMagnification * key . height ) ;
6767 displayText = key .shiftAwareDisplayText (shiftMode );
68- textOffsetX = key .textOffsetX ;
69- textOffsetY = key .textOffsetY ;
68+ textOffsetX = ( int ) ( key .previewMagnification * key . textOffsetX ) ;
69+ textOffsetY = ( int ) ( key .previewMagnification * key . textOffsetY ) ;
7070
71- rectangle .set (0 , 0 , key . width , key . height );
71+ rectangle .set (0 , 0 , width , height );
7272
7373 fillPaint .setColor (InputContainer .toPressedColour (key .fillColour ));
7474 borderPaint .setColor (key .borderColour );
You can’t perform that action at this time.
0 commit comments