@@ -242,14 +242,14 @@ private void drawBorderRect(float x, float y, float width, float height, float b
242242 Color border = resolveBorderColor (x , y );
243243
244244 StencilUtil .initStencilToWrite ();
245- Rects .rounded (Math . round ( outerX ), Math . round ( outerY ), Math . round ( outerW ), Math . round ( outerH ) , radius , new Color (0 , 0 , 0 , 255 ));
245+ Rects .rounded (outerX , outerY , outerW , outerH , radius , new Color (0 , 0 , 0 , 255 ). getRGB ( ));
246246 org .lwjgl .opengl .GL11 .glStencilFunc (org .lwjgl .opengl .GL11 .GL_ALWAYS , 0 , 0xFF );
247247 org .lwjgl .opengl .GL11 .glStencilOp (org .lwjgl .opengl .GL11 .GL_REPLACE , org .lwjgl .opengl .GL11 .GL_REPLACE , org .lwjgl .opengl .GL11 .GL_REPLACE );
248- Rects .rounded (Math . round ( x ), Math . round ( y ), Math . round ( scaledW ), Math . round ( scaledH ) , radius , new Color (0 , 0 , 0 , 255 ));
248+ Rects .rounded (x , y , scaledW , scaledH , radius , new Color (0 , 0 , 0 , 255 ). getRGB ( ));
249249 org .lwjgl .opengl .GL11 .glColorMask (true , true , true , true );
250250 org .lwjgl .opengl .GL11 .glStencilFunc (org .lwjgl .opengl .GL11 .GL_EQUAL , 1 , 0xFF );
251251 org .lwjgl .opengl .GL11 .glStencilOp (org .lwjgl .opengl .GL11 .GL_KEEP , org .lwjgl .opengl .GL11 .GL_KEEP , org .lwjgl .opengl .GL11 .GL_KEEP );
252- Rects .rounded (Math . round ( outerX ), Math . round ( outerY ), Math . round ( outerW ), Math . round ( outerH ) , radius , border );
252+ Rects .rounded (outerX , outerY , outerW , outerH , radius , border . getRGB () );
253253 StencilUtil .uninitStencilBuffer ();
254254 }
255255
@@ -292,7 +292,7 @@ private void drawPressAnimation(float x, float y, float width, float height, boo
292292 float scaledH = height * scale ;
293293 if (mode .equals ("Pulse" ) || mode .equals ("Bloom" )) {
294294 StencilUtil .initStencilToWrite ();
295- Rects .rounded (Math . round ( x ), Math . round ( y ), Math . round ( scaledW ), Math . round ( scaledH ) , mod .rounded .getValue () ? mod .roundRadius .getValue ().intValue () : 0 , new Color (0 , 0 , 0 , 255 ));
295+ Rects .rounded (x , y , scaledW , scaledH , mod .rounded .getValue () ? mod .roundRadius .getValue ().intValue () : 0 , new Color (0 , 0 , 0 , 255 ). getRGB ( ));
296296 StencilUtil .readStencilBuffer (1 );
297297 for (PressAnim anim : pressAnims ) {
298298 float progress = Math .min (anim .progress , 1.0f );
@@ -322,7 +322,7 @@ private void drawPressAnimation(float x, float y, float width, float height, boo
322322 Keystrokes .pressAnimColor .getColor ().getBlue (),
323323 (int ) (Keystrokes .pressAnimColor .getColor ().getAlpha () * alpha )
324324 );
325- Rects .rounded (Math . round ( x + scaledW / 2f - sizeW / 2f ), Math . round ( y + scaledH / 2f - sizeH / 2f ), Math . round ( sizeW ), Math . round ( sizeH ) , mod .rounded .getValue () ? mod .roundRadius .getValue ().intValue () : 0 , c );
325+ Rects .rounded (x + scaledW / 2f - sizeW / 2f , y + scaledH / 2f - sizeH / 2f , sizeW , sizeH , mod .rounded .getValue () ? mod .roundRadius .getValue ().intValue () : 0 , c . getRGB () );
326326 }
327327 }
328328 }
0 commit comments