- Upgraded to new libpng for Windows

- Fixed windows makefile
This commit is contained in:
Rob Pearce 2009-09-28 02:49:39 +00:00
parent f7038eab11
commit 3e6bec6d96
5 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
netmapr: netmapr.c constants.h netmapr.h Makefile
gcc -mwindows -mno-cygwin -Wall -onetmapr.exe -O2 -g netmapr.c windows_files/attachicon.res `sdl-config --cflags --libs` -I/usr/local/include -lmingw32 -L/usr/local/lib -lSDLmain -lSDL -lSDL_ttf
gcc -mwindows -mno-cygwin -Wall -onetmapr.exe -O2 -g savepng.c netmapr.c windows_files/attachicon.res `sdl-config --cflags --libs` -I/usr/local/include -lmingw32 -L/usr/local/lib -lSDLmain -lSDL -lSDL_ttf -lpng
convert: convert.c convert.h Makefile
gcc -Wall -g convert.c -I/usr/local/include -oconvert -lmingw32 -L/usr/local/lib -lSDLmain -lSDL

View File

@ -8,8 +8,10 @@ WINFILE=${FULLNAME}-win32.zip
mkdir ${FULLNAME}
cp README.txt INSTALL.txt Makefile.linux Makefile.freebsd Makefile.windows objects.dat buttons.dat netmapr.c netmapr.h constants.h convert.c convert.h icon.bmp verdana.ttf example.map ${FULLNAME}/
cp -R doc ${FULLNAME}/
cp -R windows_files ${FULLNAME}/
rm -rf ${FULLNAME}/doc/CVS
rm -rf ${FULLNAME}/doc/.svn
rm -rf ${FULLNAME}/windows_files/.svn
tar zcvf ${TARFILE} ${FULLNAME}
rm -rf ${FULLNAME}

View File

@ -218,6 +218,7 @@ int main (int argc, char **argv) {
if (autoload) {
loadmap();
strcpy(text, "");
textpos = text;
}
@ -912,6 +913,7 @@ int main (int argc, char **argv) {
starty = ((screen->h - STATUSH)/2)-2;
bg = NULL;
strcpy(text, map[curmap].name);
textpos = &text[strlen(text)];
changestate(S_MAPNAMING);
drawmap(TRUE);
break;
@ -1690,7 +1692,6 @@ int main (int argc, char **argv) {
}
/* state dependant */
if ((state == S_TYPETEXT) || (state == S_SAVING) || (state == S_LOADING) || (state == S_MAPNAMING) || (state == S_EDITTEXT) || (state == S_SEARCH)) {
// ooooooooooooooo
if ((c2 == 'u') && (mod & KMOD_CTRL)) {
// delete from start to text pos
strcpy(text, textpos);
@ -1739,7 +1740,6 @@ int main (int argc, char **argv) {
} else if (c2 == SDLK_RIGHT) {
if (textpos != &text[strlen(text)]) textpos++;
updatetextcursor();
//oooooooooo
} else if ((c2 == SDLK_ESCAPE) ||
((c2 == 'g') && (mod & KMOD_CTRL)) ) {
sprintf(statustext, "Aborted.");
@ -1823,6 +1823,7 @@ int main (int argc, char **argv) {
starty = ((screen->h-STATUSH)/2)-2;
bg = NULL;
strcpy(text, "");
textpos = text;
changestate(S_SEARCH);
drawmap(TRUE);
}

Binary file not shown.

BIN
windows_files/libpng13.dll Normal file

Binary file not shown.