Browse Source

Update spriteeditor.c

Rudy Boudewijn van Etten 5 years ago
parent
commit
079e19fbb2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      SpriteEditor/spriteeditor.c

+ 2 - 2
SpriteEditor/spriteeditor.c

@@ -220,7 +220,7 @@ int main(void)
     const int screenHeight = 480;
     const int screenHeight = 480;
 
 
     InitWindow(screenWidth, screenHeight, "raylib example.");
     InitWindow(screenWidth, screenHeight, "raylib example.");
-
+    //ToggleFullscreen();
 
 
     //'start setup setup
     //'start setup setup
     //' be sure to start the editor with the selection
     //' be sure to start the editor with the selection
@@ -1571,7 +1571,7 @@ void spriteview(){
             if(rectsoverlap(GetMouseX(),GetMouseY(),1,1,pointx,pointy,gridwidth,gridheight)){								
             if(rectsoverlap(GetMouseX(),GetMouseY(),1,1,pointx,pointy,gridwidth,gridheight)){								
                 if(toolselected == toolfillid){
                 if(toolselected == toolfillid){
                     paletteundermouse = map[x][y];
                     paletteundermouse = map[x][y];
-                    fillatposition(x,y,map[x][y],paletteselected);
+                    if(paletteundermouse!=paletteselected)fillatposition(x,y,map[x][y],paletteselected);
                 }
                 }
             }
             }
         }
         }