瀏覽代碼

Update spriteeditor.c

Rudy Boudewijn van Etten 5 年之前
父節點
當前提交
079e19fbb2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      SpriteEditor/spriteeditor.c

+ 2 - 2
SpriteEditor/spriteeditor.c

@@ -220,7 +220,7 @@ int main(void)
     const int screenHeight = 480;
 
     InitWindow(screenWidth, screenHeight, "raylib example.");
-
+    //ToggleFullscreen();
 
     //'start setup setup
     //' 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(toolselected == toolfillid){
                     paletteundermouse = map[x][y];
-                    fillatposition(x,y,map[x][y],paletteselected);
+                    if(paletteundermouse!=paletteselected)fillatposition(x,y,map[x][y],paletteselected);
                 }
             }
         }