Skip to content

Commit

Permalink
Better parameter name bc needs to be 1/n
Browse files Browse the repository at this point in the history
  • Loading branch information
valoeghese committed Feb 26, 2021
1 parent 8b9bd3b commit d3b0d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/valoeghese/scalpel/RectangleGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ public RectangleGUI(int texture, float xSize, float ySize) {

protected float[][] protoVertices;

public void setPosition(float xOffset, float yOffset, float windowAspect) {
public void setPosition(float xOffset, float yOffset, float inverseWindowAspect) {
this.destroy();

float aspect = windowAspect;
float aspect = inverseWindowAspect;

int tl = this.vertex(xOffset + aspect * this.protoVertices[0][0], yOffset + this.protoVertices[0][1], 0, 1);
int bl = this.vertex(xOffset + aspect * this.protoVertices[1][0], yOffset + this.protoVertices[1][1], 0, 0);
Expand Down

0 comments on commit d3b0d2c

Please sign in to comment.