diff --git a/project/themes/UltimateDroid/UltimateDroidButton1.png b/project/themes/UltimateDroid/UltimateDroidButton1.png new file mode 100644 index 000000000..3959c6128 Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton1.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton1Pressed.png b/project/themes/UltimateDroid/UltimateDroidButton1Pressed.png new file mode 100644 index 000000000..740cb6c5a Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton1Pressed.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton2.png b/project/themes/UltimateDroid/UltimateDroidButton2.png new file mode 100644 index 000000000..c605e2b5f Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton2.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton2Pressed.png b/project/themes/UltimateDroid/UltimateDroidButton2Pressed.png new file mode 100644 index 000000000..c395a7a04 Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton2Pressed.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton3.png b/project/themes/UltimateDroid/UltimateDroidButton3.png new file mode 100644 index 000000000..84efe6a1a Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton3.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton3Pressed.png b/project/themes/UltimateDroid/UltimateDroidButton3Pressed.png new file mode 100644 index 000000000..944d47355 Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton3Pressed.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton4.png b/project/themes/UltimateDroid/UltimateDroidButton4.png new file mode 100644 index 000000000..51fb408e3 Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton4.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton4Pressed.png b/project/themes/UltimateDroid/UltimateDroidButton4Pressed.png new file mode 100644 index 000000000..e5af59f41 Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton4Pressed.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton5.png b/project/themes/UltimateDroid/UltimateDroidButton5.png new file mode 100644 index 000000000..3544aa2eb Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton5.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton5Pressed.png b/project/themes/UltimateDroid/UltimateDroidButton5Pressed.png new file mode 100644 index 000000000..2937bc4cc Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton5Pressed.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton6.png b/project/themes/UltimateDroid/UltimateDroidButton6.png new file mode 100644 index 000000000..daa902b37 Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton6.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidButton6Pressed.png b/project/themes/UltimateDroid/UltimateDroidButton6Pressed.png new file mode 100644 index 000000000..8f2a3a6e7 Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidButton6Pressed.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidDPadButton.png b/project/themes/UltimateDroid/UltimateDroidDPadButton.png new file mode 100644 index 000000000..7edbd62ca Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidDPadButton.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidDownButtonPressed.png b/project/themes/UltimateDroid/UltimateDroidDownButtonPressed.png new file mode 100644 index 000000000..5283c6b1d Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidDownButtonPressed.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidLeftButtonPressed.png b/project/themes/UltimateDroid/UltimateDroidLeftButtonPressed.png new file mode 100644 index 000000000..1597c4618 Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidLeftButtonPressed.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidRightButtonPressed.png b/project/themes/UltimateDroid/UltimateDroidRightButtonPressed.png new file mode 100644 index 000000000..448854a92 Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidRightButtonPressed.png differ diff --git a/project/themes/UltimateDroid/UltimateDroidUpButtonPressed.png b/project/themes/UltimateDroid/UltimateDroidUpButtonPressed.png new file mode 100644 index 000000000..e8ef31e85 Binary files /dev/null and b/project/themes/UltimateDroid/UltimateDroidUpButtonPressed.png differ diff --git a/project/themes/converter/Makefile b/project/themes/converter/Makefile new file mode 100644 index 000000000..dc852e1a3 --- /dev/null +++ b/project/themes/converter/Makefile @@ -0,0 +1,9 @@ + +all: converter + +converter: *.cpp + g++ -g3 -o $@ $? `sdl-config --cflags` `sdl-config --libs` -lSDL_image + +editor.exe: *.cpp + i586-mingw32msvc-g++ -o $@ $? -I ../sdl-1.2/include -L. -lSDL + i586-mingw32msvc-strip $@ diff --git a/project/themes/converter/converter b/project/themes/converter/converter new file mode 100755 index 000000000..a107ec7fd Binary files /dev/null and b/project/themes/converter/converter differ diff --git a/project/themes/converter/converter.cpp b/project/themes/converter/converter.cpp new file mode 100644 index 000000000..2f1748841 --- /dev/null +++ b/project/themes/converter/converter.cpp @@ -0,0 +1,61 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +int +main(int argc, char *argv[]) +{ + if(argc < 3) + return 1; + SDL_Surface * src = IMG_Load(argv[1]); + if(!src) + return 1; + SDL_Surface * format1 = SDL_CreateRGBSurface( SDL_SWSURFACE|SDL_SRCALPHA, 1, 1, 16, 0xF800, 0x7C0, 0x3E, 0x1 ); + if( argc >= 4 ) + format1 = SDL_CreateRGBSurface( SDL_SWSURFACE|SDL_SRCALPHA, 1, 1, 16, 0xF000, 0xF00, 0xF0, 0xF ); + if(!format1) + return 1; + SDL_Surface * dst = SDL_ConvertSurface(src, format1->format, SDL_SWSURFACE|SDL_SRCALPHA); + if(!dst) + return 1; + FILE * ff = fopen(argv[2], "wb"); + if(!ff) + return 1; + int w = htonl(dst->w); + fwrite( &w, 1, 4, ff ); + int h = htonl(dst->h); + fwrite( &h, 1, 4, ff ); + for( int i = 0; i < dst->h; i++ ) + { + for( int ii = 0; ii < dst->w; ii++ ) + { + if(* (Uint16 *) ((Uint8 *)dst->pixels + i*dst->pitch + ii*2) & 0x1 == 0 && argc <= 3) + * (Uint16 *) ((Uint8 *)dst->pixels + i*dst->pitch + ii*2) = 0; + fwrite( (Uint8 *)dst->pixels + i*dst->pitch + ii*2, 1, 2, ff ); + } + } + fclose(ff); + return 0; +} + +#ifdef WIN32 +#include +int CALLBACK WinMain( + HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPSTR lpCmdLine, + int nCmdShow +) +{ + return main(0, NULL); +}; + +#endif