mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 08:30:35 +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();
|
FontMetrics fontMetrics = gc.getFontMetrics();
|
||||||
gc.dispose();
|
gc.dispose();
|
||||||
int fontHeight = fontMetrics.getHeight();
|
int fontHeight = fontMetrics.getHeight();
|
||||||
int fontWidth = (int)fontMetrics.getAverageCharacterWidth();
|
int fontWidth = fontMetrics.getAverageCharWidth();
|
||||||
Rectangle clientArea = composite.getClientArea();
|
Rectangle clientArea = composite.getClientArea();
|
||||||
int lines = clientArea.height / fontHeight;
|
int lines = clientArea.height / fontHeight;
|
||||||
int pageHeight = lines * fontHeight;
|
int pageHeight = lines * fontHeight;
|
||||||
|
Loading…
Reference in New Issue
Block a user