Sfoglia il codice sorgente

Fix Poly for screens wider than 512 pixels

James Bowman 6 anni fa
parent
commit
405e385ae1
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      GD2.h

+ 3 - 3
GD2.h

@@ -1127,9 +1127,9 @@ class Poly {
       GD.ColorMask(1,1,1,1);
       GD.StencilFunc(EQUAL, 255, 255);
 
-      GD.Begin(EDGE_STRIP_B);
-      GD.Vertex2ii(0, 0);
-      GD.Vertex2ii(511, 0);
+      GD.Begin(EDGE_STRIP_R);
+      GD.Vertex2f(0, 0);
+      GD.Vertex2f(0, PIXELS(GD.h));
     }
     void draw() {
       paint();