mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-21 17:29:55 +00:00
Reverting back to deprecated method to support RPi.
This commit is contained in:
parent
e30da7e939
commit
9005a07280
@ -64,7 +64,7 @@ public class SwtUtil {
|
||||
FontMetrics fontMetrics = gc.getFontMetrics();
|
||||
gc.dispose();
|
||||
int fontHeight = fontMetrics.getHeight();
|
||||
int fontWidth = (int)fontMetrics.getAverageCharacterWidth();
|
||||
int fontWidth = fontMetrics.getAverageCharWidth();
|
||||
Rectangle clientArea = composite.getClientArea();
|
||||
int lines = clientArea.height / fontHeight;
|
||||
int pageHeight = lines * fontHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user