This commit is contained in:
david committed 2026-06-10 13:03:09 -03:00
1 parent 25fb5df7cc
commit 834557ec1d
1 file changed
+2 -2
+2 -2
View File
@@ -16,7 +16,7 @@
#define WINTITLE "sorting..."
#define FONTSIZE 80
#define FONTPATH "./font/FreeSans.ttf"
#define FONTPATH "/home/david/hi/coding/c/active/imagesortc/font/FreeSans.ttf"
SDL_Color textcolor = { 255, 255, 255, 255 };
@@ -249,7 +249,7 @@ int main(int argc, char **argv){
case SDL_SCANCODE_D:
if(!typing){
char otherbuf[1024];
snprintf(otherbuf, sizeof(otherbuf), "../other/%s", strrchr(images[whichone], '/') + 1);
snprintf(otherbuf, sizeof(otherbuf), "../delete/%s", strrchr(images[whichone], '/') + 1);
rename(images[whichone], otherbuf);
if(whichone + 1 < count){
whichone++;