Added Win32 .EXE for font editor
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
|
||||
all: editor editor.exe
|
||||
|
||||
editor: *.cpp
|
||||
g++ -g3 -o $@ $? `sdl-config --cflags` `sdl-config --libs`
|
||||
|
||||
editor.exe: *.cpp
|
||||
i586-mingw32msvc-g++ -o $@ $? -I ../sdl-1.2/include -L. -lSDL
|
||||
i586-mingw32msvc-strip $@
|
||||
|
||||
BIN
project/sdl/fonteditor/SDL.dll
Executable file
BIN
project/sdl/fonteditor/SDL.dll
Executable file
Binary file not shown.
@@ -107,7 +107,7 @@ void DrawLine(SDL_Surface * bmp, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uin
|
||||
|
||||
Uint16 d = color;
|
||||
|
||||
#define proc( bmp, x, y, d ) * (Uint16 *)( bmp->pixels + bmp->pitch * (y) + (x) * 2 ) = d
|
||||
#define proc( bmp, x, y, d ) * (Uint16 *)( ((Uint8 *)bmp->pixels) + bmp->pitch * (y) + (x) * 2 ) = d
|
||||
|
||||
/* worker macro */
|
||||
#define DO_LINE(pri_sign, pri_c, pri_cond, sec_sign, sec_c, sec_cond) \
|
||||
@@ -329,3 +329,16 @@ main(int argc, char *argv[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
int CALLBACK WinMain(
|
||||
HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
LPSTR lpCmdLine,
|
||||
int nCmdShow
|
||||
)
|
||||
{
|
||||
return main(0, NULL);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
BIN
project/sdl/fonteditor/editor.exe
Executable file
BIN
project/sdl/fonteditor/editor.exe
Executable file
Binary file not shown.
BIN
project/sdl/fonteditor/libSDL.dll.a
Executable file
BIN
project/sdl/fonteditor/libSDL.dll.a
Executable file
Binary file not shown.
41
project/sdl/fonteditor/libSDL.la
Executable file
41
project/sdl/fonteditor/libSDL.la
Executable file
@@ -0,0 +1,41 @@
|
||||
# libSDL.la - a libtool library file
|
||||
# Generated by ltmain.sh (GNU libtool) 2.2.6
|
||||
#
|
||||
# Please DO NOT delete this file!
|
||||
# It is necessary for linking the library.
|
||||
|
||||
# The name that we can dlopen(3).
|
||||
dlname='../bin/SDL.dll'
|
||||
|
||||
# Names of this library.
|
||||
library_names='libSDL.dll.a'
|
||||
|
||||
# The name of the static archive.
|
||||
old_library='libSDL.a'
|
||||
|
||||
# Linker flags that can not go in dependency_libs.
|
||||
inherited_linker_flags=''
|
||||
|
||||
# Libraries that this one depends upon.
|
||||
dependency_libs=' -luser32 -lgdi32 -lwinmm -ldxguid'
|
||||
|
||||
# Names of additional weak libraries provided by this library
|
||||
weak_library_names=''
|
||||
|
||||
# Version information for libSDL.
|
||||
current=11
|
||||
age=11
|
||||
revision=3
|
||||
|
||||
# Is this an already installed library?
|
||||
installed=yes
|
||||
|
||||
# Should we warn about portability when linking against -modules?
|
||||
shouldnotlink=no
|
||||
|
||||
# Files to dlopen/dlpreopen
|
||||
dlopen=''
|
||||
dlpreopen=''
|
||||
|
||||
# Directory that this library needs to be installed in:
|
||||
libdir='/usr/local/lib'
|
||||
Reference in New Issue
Block a user