Ink *NewInk();
+void DrawMapInk(SimView *view);
+void WireDrawMap(SimView *view);
+void DrawMapEditorViews(SimView *view);
+int
MapCmdconfigure(VIEW_ARGS)
{
int result = TCL_OK;
return result;
}
+int
MapCmdposition(VIEW_ARGS)
{
if ((argc != 2) && (argc != 4)) {
return TCL_OK;
}
+int
MapCmdsize(VIEW_ARGS)
{
if ((argc != 2) && (argc != 4)) {
return TCL_OK;
}
+int
MapCmdMapState(VIEW_ARGS)
{
int state;
return TCL_OK;
}
+int
MapCmdShowEditors(VIEW_ARGS)
{
int val;
return TCL_OK;
}
+int
MapCmdPanStart(VIEW_ARGS)
{
int x, y, left, right, top, bottom, width, height;
return TCL_OK;
}
+int
MapCmdPanTo(VIEW_ARGS)
{
int x, y, dx, dy;
return TCL_OK;
}
+int
MapCmdVisible(VIEW_ARGS)
{
int visible;
return TCL_OK;
}
+int
MapCmdViewAt(VIEW_ARGS)
{
int x, y;
}
-map_command_init()
+void
+map_command_init(void)
{
- int new;
extern int TileViewCmd(CLIENT_ARGS);
Tcl_CreateCommand(tk_mainInterp, "mapview", TileViewCmd,
return TCL_ERROR;
}
- if (ent = Tcl_FindHashEntry(&MapCmds, argv[1])) {
+ if ((ent = Tcl_FindHashEntry(&MapCmds, argv[1]))) {
cmd = (int (*)())ent->clientData;
Tk_Preserve((ClientData) view);
result = cmd(view, interp, argc, argv);
/*************************************************************************/
+void
DoNewMap(SimView *view)
{
sim->maps++; view->next = sim->map; sim->map = view;
}
+void
DrawMapEditorViews(SimView *view)
{
Pixmap pm = Tk_WindowId(view->tkwin);
struct SimView *ed;
int left, right, top, bottom, width, height;
- int mine;
XSetLineAttributes(view->x->dpy, view->x->gc, 1,
LineSolid, CapButt, JoinBevel);
struct Pix pix[MAX_PIX];
+int
CompareColor(struct Pix *p1, struct Pix *p2)
{
register char c1 = p1->color, c2 = p2->color;
}
+void
WireDrawMap(SimView *view)
{
- int different, x, y, i, last, pts;
+ int different, x, y;
unsigned char *old, *new;
+#if 0
XPoint *points;
+ int i, last, pts;
+#endif
if (!view->x->color) {
MemDrawMap(view);
}
+void
DrawMapInk(SimView *view)
{
Pixmap pm = view->pixmap2;
- SimView *v;
Ink *ink, *ink2 = NewInk();
int i, X, Y, x, y;