- Removed -D from FreeBSD Makefile

- Updated screenshots to show new object box and snap-to-grid mode
- Added grid size modification for snap-to-grid mode (';' key)
- Bumped version to 1.2a
This commit is contained in:
Rob Pearce 2005-11-11 13:04:03 +00:00
parent 544de11796
commit c5a3025cf0
5 changed files with 18 additions and 7 deletions

View File

@ -2,9 +2,9 @@ netmapr: netmapr.c constants.h netmapr.h Makefile
gcc -Wall -g netmapr.c -onetmapr `sdl11-config --libs --cflags` -L/usr/X11R6/lib -lX11 -lpthread -lXext -lSDL_ttf
install: netmapr
install -C -D -o root -m 755 netmapr /usr/local/bin/netmapr
install -C -o root -m 755 netmapr /usr/local/bin/netmapr
ln -f /usr/local/bin/netmapr /usr/local/bin/netmapr-viewer
install -C -D -o root -m 644 buttons.dat /usr/local/share/netmapr/buttons.dat
install -C -D -o root -m 644 objects.dat /usr/local/share/netmapr/objects.dat
install -C -D -o root -m 644 verdana.ttf /usr/local/share/netmapr/verdana.ttf
install -C -D -o root -m 644 icon.bmp /usr/local/share/netmapr/icon.bmp
install -C -o root -m 644 buttons.dat /usr/local/share/netmapr/buttons.dat
install -C -o root -m 644 objects.dat /usr/local/share/netmapr/objects.dat
install -C -o root -m 644 verdana.ttf /usr/local/share/netmapr/verdana.ttf
install -C -o root -m 644 icon.bmp /usr/local/share/netmapr/icon.bmp

View File

@ -1,4 +1,4 @@
#define VERSION "1.2"
#define VERSION "1.2a"
#define BUFLEN 512

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -65,6 +65,9 @@ int copytype = T_MAP;
int grid = TRUE;
int gridsize = 10;
int gridsizelist[] = {5, 10, 15, 20};
int gridsizeindex = 1;
int gridsizenum = 4;
SDL_Color gridcol = {0, 0, 0, 0 };
int matchtype = 0;
@ -1449,7 +1452,7 @@ int main (int argc, char **argv) {
}
}
}
if (c == 'g') { /* toggle gridsize */
if (c == 'g') { /* toggle snap-to-grid */
if (grid) {
grid = FALSE;
strcpy(statustext, "Grid mode disabled.");
@ -1459,6 +1462,14 @@ int main (int argc, char **argv) {
}
drawmap();
}
if (c == ';') { /* change gridsize */
if (++gridsizeindex >= gridsizenum) {
gridsizeindex = 0;
}
gridsize = gridsizelist[gridsizeindex];
sprintf(statustext, "Grid size set to %d.", gridsize);
drawmap();
}
if (c == 'c') { /* copy */
if (map[curmap].selecteditem == -1) {
/* copy entire map */

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 172 KiB