Skip to content
Browse files

linux gui - sdl2.0 does not support drag drop files (yet)

  • Loading branch information...
1 parent 84577f2 commit 8b3cad6d245633ebb83d86fdd88d00be4a844a5e @stg committed May 31, 2012
View
BIN bin-linux/cli
Binary file not shown.
View
BIN bin-linux/gui
Binary file not shown.
View
BIN bin-linux/gui_sdl12
Binary file not shown.
View
BIN bin-linux/knit
Binary file not shown.
View
BIN bin-linux/ui.bmp
Binary file not shown.
View
BIN bin-win/gui.exe
Binary file not shown.
View
1 gui/main.c
@@ -285,6 +285,7 @@ static bool add_event(SDL_Event *event) {
p_item=ui_list_add(top[TOP_LIST],"PPP IS WWWXHHH",4+w*h);
((uint16_t*)p_item->data)[0]=w;
((uint16_t*)p_item->data)[1]=h;
+ memset(&((uint8_t*)p_item->data)[4],0xFF,w*h);
list_fill();
}
view=VIEW_TOP;
View
4 linux-cli-make.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-echo [bin-linux/knit] building command-line-interface binary...
+echo [bin-linux/cli] building command-line-interface binary...
set -e
-gcc cli/src/knit.c lib/src/*.c -I lib/include/ -o bin-linux/knit
+gcc cli/src/knit.c lib/src/*.c -I lib/include/ -o bin-linux/cli
View
7 linux-gui-make.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+echo [bin-linux/gui] building command-line-interface binary...
+gcc gui/*.c lib/src/*.c -I lib/include/ -lfreeimage -lstdc++ -lSDLmain -lSDL -o bin-linux/gui_sdl12
+
+echo [bin-linux/gui] building SDL2 gui binary...
+gcc gui/*.c lib/src/*.c -I lib/include/ -lfreeimage -lstdc++ -lSDL2main -lSDL2 -DSDL2 -o bin-linux/gui

0 comments on commit 8b3cad6

Please sign in to comment.
Something went wrong with that request. Please try again.