aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/resources/assets/skyhanni/shaders/rounded_rect.fsh2
-rw-r--r--src/main/resources/assets/skyhanni/shaders/rounded_rect_outline.fsh2
-rw-r--r--src/main/resources/assets/skyhanni/shaders/rounded_texture.fsh2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/resources/assets/skyhanni/shaders/rounded_rect.fsh b/src/main/resources/assets/skyhanni/shaders/rounded_rect.fsh
index 0d91be0a5..e728bf43d 100644
--- a/src/main/resources/assets/skyhanni/shaders/rounded_rect.fsh
+++ b/src/main/resources/assets/skyhanni/shaders/rounded_rect.fsh
@@ -22,7 +22,7 @@ void main() {
vec2 newHalfSize = vec2(halfSize.x * xScale, halfSize.y * yScale);
float newCenterPosY = centerPos.y;
- if (yScale > 1.0) {
+ if (yScale != 1.0) {
newCenterPosY = centerPos.y - (halfSize.y * (yScale - 1));
}
diff --git a/src/main/resources/assets/skyhanni/shaders/rounded_rect_outline.fsh b/src/main/resources/assets/skyhanni/shaders/rounded_rect_outline.fsh
index 278390056..64c8a54d6 100644
--- a/src/main/resources/assets/skyhanni/shaders/rounded_rect_outline.fsh
+++ b/src/main/resources/assets/skyhanni/shaders/rounded_rect_outline.fsh
@@ -26,7 +26,7 @@ void main() {
vec2 newHalfSize = vec2(halfSize.x * xScale, halfSize.y * yScale);
float newCenterPosY = centerPos.y;
- if (yScale > 1.0) {
+ if (yScale != 1.0) {
newCenterPosY = centerPos.y - (halfSize.y * (yScale - 1));
}
diff --git a/src/main/resources/assets/skyhanni/shaders/rounded_texture.fsh b/src/main/resources/assets/skyhanni/shaders/rounded_texture.fsh
index a38ebc4ea..4e5c0e1ea 100644
--- a/src/main/resources/assets/skyhanni/shaders/rounded_texture.fsh
+++ b/src/main/resources/assets/skyhanni/shaders/rounded_texture.fsh
@@ -25,7 +25,7 @@ void main() {
vec2 newHalfSize = vec2(halfSize.x * xScale, halfSize.y * yScale);
float newCenterPosY = centerPos.y;
- if (yScale > 1.0) {
+ if (yScale != 1.0) {
newCenterPosY = centerPos.y - (halfSize.y * (yScale - 1));
}