mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-21 17:29:55 +00:00
Noticed this SWT API call had been deprecated. #51
This commit is contained in:
parent
b78253175d
commit
febe3d9f75
@ -64,7 +64,7 @@ public class SwtUtil {
|
||||
FontMetrics fontMetrics = gc.getFontMetrics();
|
||||
gc.dispose();
|
||||
int fontHeight = fontMetrics.getHeight();
|
||||
int fontWidth = fontMetrics.getAverageCharWidth();
|
||||
int fontWidth = (int)fontMetrics.getAverageCharacterWidth();
|
||||
Rectangle clientArea = composite.getClientArea();
|
||||
int lines = clientArea.height / fontHeight;
|
||||
int pageHeight = lines * fontHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user