- 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:
parent
544de11796
commit
c5a3025cf0
|
@ -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
|
gcc -Wall -g netmapr.c -onetmapr `sdl11-config --libs --cflags` -L/usr/X11R6/lib -lX11 -lpthread -lXext -lSDL_ttf
|
||||||
|
|
||||||
install: netmapr
|
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
|
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 -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 -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 -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 icon.bmp /usr/local/share/netmapr/icon.bmp
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#define VERSION "1.2"
|
#define VERSION "1.2a"
|
||||||
|
|
||||||
#define BUFLEN 512
|
#define BUFLEN 512
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 19 KiB |
13
netmapr.c
13
netmapr.c
|
@ -65,6 +65,9 @@ int copytype = T_MAP;
|
||||||
|
|
||||||
int grid = TRUE;
|
int grid = TRUE;
|
||||||
int gridsize = 10;
|
int gridsize = 10;
|
||||||
|
int gridsizelist[] = {5, 10, 15, 20};
|
||||||
|
int gridsizeindex = 1;
|
||||||
|
int gridsizenum = 4;
|
||||||
SDL_Color gridcol = {0, 0, 0, 0 };
|
SDL_Color gridcol = {0, 0, 0, 0 };
|
||||||
|
|
||||||
int matchtype = 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) {
|
if (grid) {
|
||||||
grid = FALSE;
|
grid = FALSE;
|
||||||
strcpy(statustext, "Grid mode disabled.");
|
strcpy(statustext, "Grid mode disabled.");
|
||||||
|
@ -1459,6 +1462,14 @@ int main (int argc, char **argv) {
|
||||||
}
|
}
|
||||||
drawmap();
|
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 (c == 'c') { /* copy */
|
||||||
if (map[curmap].selecteditem == -1) {
|
if (map[curmap].selecteditem == -1) {
|
||||||
/* copy entire map */
|
/* copy entire map */
|
||||||
|
|
BIN
netmapr.jpg
BIN
netmapr.jpg
Binary file not shown.
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 172 KiB |
Loading…
Reference in New Issue