javadoc for non-obvious things
This commit is contained in:
parent
14c8fba9cb
commit
b270015c14
|
@ -227,7 +227,7 @@ public class DisplayContainer implements ErrorDumpable, KeyListener, MouseListen
|
||||||
}
|
}
|
||||||
|
|
||||||
if (displayMode == null) {
|
if (displayMode == null) {
|
||||||
displayMode = new DisplayMode(width,height);
|
displayMode = new DisplayMode(width, height);
|
||||||
if (fullscreen) {
|
if (fullscreen) {
|
||||||
fullscreen = false;
|
fullscreen = false;
|
||||||
Log.warn("could not find fullscreen displaymode for " + width + "x" + height);
|
Log.warn("could not find fullscreen displaymode for " + width + "x" + height);
|
||||||
|
|
|
@ -189,6 +189,9 @@ public class BubbleNotificationState implements EventListener<BubbleNotification
|
||||||
this.height = (int) (Fonts.SMALLBOLD.getLineHeight() * (lines.size() + 0.5f));
|
this.height = (int) (Fonts.SMALLBOLD.getLineHeight() * (lines.size() + 0.5f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return true if this notification expired
|
||||||
|
*/
|
||||||
private boolean render(Graphics g, int mouseX, int mouseY, int delta) {
|
private boolean render(Graphics g, int mouseX, int mouseY, int delta) {
|
||||||
timeShown += delta;
|
timeShown += delta;
|
||||||
processAnimations(isMouseHovered(mouseX, mouseY), delta);
|
processAnimations(isMouseHovered(mouseX, mouseY), delta);
|
||||||
|
|
|
@ -58,6 +58,9 @@ public class FpsRenderState implements EventListener<ResolutionChangedEvent> {
|
||||||
return DARKORANGE;
|
return DARKORANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return x position where the next block can be drawn (right aligned)
|
||||||
|
*/
|
||||||
private int drawText(Graphics g, Color color, String text, int x, int y) {
|
private int drawText(Graphics g, Color color, String text, int x, int y) {
|
||||||
int width = Fonts.SMALL.getWidth(text) + 10;
|
int width = Fonts.SMALL.getWidth(text) + 10;
|
||||||
g.setColor(color);
|
g.setColor(color);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user