You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method getHeight() for CanvasWindow object on my computer does not return the correct height
Steps to Reproduce (also see the attached picture for reference)
import edu.macalester.graphics.*;
public class BreakoutGame {
private static final int CANVAS_WIDTH = 600;
private static final int CANVAS_HEIGHT = 800;
private CanvasWindow canvas;
public BreakoutGame() {
canvas = new CanvasWindow("Breakout!", CANVAS_WIDTH, CANVAS_HEIGHT);
}
public void run() {
System.out.println(canvas.getHeight());
}
public static void main(String[] args) {
new BreakoutGame().run();
}
}
Expected behavior
The number 800 is printed out
Actual behavior
The number 700 is printed out
The text was updated successfully, but these errors were encountered:
A similar(?) problem happens with my canvas.getWidth() (the printed width for the small-scale window is 600, but when I enlarge the window to its full size, the printed width changes to 1281
Description
Steps to Reproduce (also see the attached picture for reference)
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: