Revision: 75287
          http://sourceforge.net/p/brlcad/code/75287
Author:   starseeker
Date:     2020-04-07 15:02:33 +0000 (Tue, 07 Apr 2020)
Log Message:
-----------
The libfb interface (and libdm too for that matter) really beg for some kind of 
dynamic library plugin arrangement.  In the meantime, we're not using the tk 
framebuffer and VC has it if we want it again.

Modified Paths:
--------------
    brlcad/trunk/src/libfb/CMakeLists.txt
    brlcad/trunk/src/libfb/fb_generic.c
    brlcad/trunk/src/libfb/fb_private.h

Removed Paths:
-------------
    brlcad/trunk/src/libfb/if_tk.c

Modified: brlcad/trunk/src/libfb/CMakeLists.txt
===================================================================
--- brlcad/trunk/src/libfb/CMakeLists.txt       2020-04-07 14:55:24 UTC (rev 
75286)
+++ brlcad/trunk/src/libfb/CMakeLists.txt       2020-04-07 15:02:33 UTC (rev 
75287)
@@ -45,12 +45,6 @@
   set(fbwgl_srcs if_wgl.c)
   set_property(SOURCE if_wgl.c APPEND PROPERTY COMPILE_DEFINITIONS 
FB_USE_INTERNAL_API)
 endif(WIN32)
-if(BRLCAD_ENABLE_TK)
-  set(FBTKDEFS "-DIF_TK")
-  set(LINKLIBS ${LINKLIBS} ${TK_LIBRARY})
-  set(fbtk_srcs if_tk.c)
-  set_property(SOURCE if_tk.c APPEND PROPERTY COMPILE_DEFINITIONS 
FB_USE_INTERNAL_API)
-endif(BRLCAD_ENABLE_TK)
 if(BRLCAD_ENABLE_QT)
   CHECK_CXX_FLAG(Wno-float-equal)
 
@@ -123,7 +117,6 @@
   if_ogl.c
   if_osgl.cpp
   if_qt.cpp
-  if_tk.c
   if_wgl.c
   fb_private.h
   osg_fb_manipulator.h

Modified: brlcad/trunk/src/libfb/fb_generic.c
===================================================================
--- brlcad/trunk/src/libfb/fb_generic.c 2020-04-07 14:55:24 UTC (rev 75286)
+++ brlcad/trunk/src/libfb/fb_generic.c 2020-04-07 15:02:33 UTC (rev 75287)
@@ -69,9 +69,6 @@
 #ifdef IF_X
     &X24_interface,
 #endif
-#ifdef IF_TK
-    &tk_interface,
-#endif
 #ifdef IF_QT
     &qt_interface,
 #endif

Modified: brlcad/trunk/src/libfb/fb_private.h
===================================================================
--- brlcad/trunk/src/libfb/fb_private.h 2020-04-07 14:55:24 UTC (rev 75286)
+++ brlcad/trunk/src/libfb/fb_private.h 2020-04-07 15:02:33 UTC (rev 75287)
@@ -46,9 +46,6 @@
 #ifdef IF_WGL
 FB_EXPORT extern fb wgl_interface;
 #endif
-#ifdef IF_TK
-FB_EXPORT extern fb tk_interface;
-#endif
 #ifdef IF_QT
 FB_EXPORT extern fb qt_interface;
 #endif

Deleted: brlcad/trunk/src/libfb/if_tk.c
===================================================================
--- brlcad/trunk/src/libfb/if_tk.c      2020-04-07 14:55:24 UTC (rev 75286)
+++ brlcad/trunk/src/libfb/if_tk.c      2020-04-07 15:02:33 UTC (rev 75287)
@@ -1,654 +0,0 @@
-/*                         I F _ T K . C
- * BRL-CAD
- *
- * Copyright (c) 2007-2020 United States Government as represented by
- * the U.S. Army Research Laboratory.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this file; see the file named COPYING for more
- * information.
- */
-/** @addtogroup libfb */
-/** @{ */
-/** @file if_tk.c
- *
- * Tk libfb interface.
- *
- */
-/** @} */
-
-#include "common.h"
-
-#ifdef IF_TK
-
-#include <stdlib.h>
-#include <ctype.h>
-#include <string.h>
-#include <tcl.h>
-#include <tk.h>
-#include "bnetwork.h"
-
-#include "bu/color.h"
-#include "bu/str.h"
-#include "bu/exit.h"
-#include "bu/log.h"
-#include "bu/snooze.h"
-
-#include "fb_private.h"
-#include "fb.h"
-
-
-Tcl_Interp *fbinterp;
-Tk_Window fbwin;
-Tk_PhotoHandle fbphoto;
-int p[2] = {0, 0};
-
-/* Note that Tk_PhotoPutBlock claims to have a faster
- * copy method when pixelSize is 4 and alphaOffset is
- * 3 - perhaps output could be massaged to generate this
- * type of information and speed up the process?
- *
- * Might as well use one block and set the three things
- * that actually change in tk_write
- */
-Tk_PhotoImageBlock block = {
-    NULL, /*Pointer to first pixel*/
-    0,    /*Width of block in pixels*/
-    1,    /*Height of block in pixels - always one for a scanline*/
-    0,    /*Address difference between successive lines*/
-    3,    /*Address difference between successive pixels on one scanline*/
-    {
-       RED,
-       GRN,
-       BLU,
-       0   /* alpha */
-    }
-};
-
-
-char *tkwrite_buffer;
-
-
-HIDDEN int
-fb_tk_open(fb *ifp, const char *file, int width, int height)
-{
-    int pid = -1;
-    const char *cmd = "package require Tk";
-    char image_create_cmd[255] = {'\0'};
-    char canvas_create_cmd[255] = {'\0'};
-    char reportcolorcmd[255] = {'\0'};
-    const char canvas_pack_cmd[255] =
-       "pack .fb_tk_canvas -fill both -expand true";
-    const char place_image_cmd[255] =
-       ".fb_tk_canvas create image 0 0 -image fb_tk_photo -anchor nw";
-    const char *wmclosecmd = "wm protocol . WM_DELETE_WINDOW {set CloseWindow 
\"close\"}";
-    const char *bindclosecmd = "bind . <Button-3> {set CloseWindow \"close\"}";
-
-    char *buffer;
-    char *linebuffer;
-
-    FB_CK_FB(ifp);
-    if (file == (char *)NULL)
-       fb_log("fb_open(0x%lx, NULL, %d, %d)\n",
-              (unsigned long)ifp, width, height);
-    else
-       fb_log("fb_open(0x%lx, \"%s\", %d, %d)\n",
-              (unsigned long)ifp, file, width, height);
-
-    /* check for default size */
-    if (width <= 0)
-       width = ifp->if_width;
-    if (height <= 0)
-       height = ifp->if_height;
-
-    /* set debug bit vector */
-    if (file != NULL) {
-       const char *cp;
-       for (cp = file; *cp != '\0' && !isdigit((unsigned char)*cp); cp++)
-           ;
-       sscanf(cp, "%d", &ifp->if_debug);
-    } else {
-       ifp->if_debug = 0;
-    }
-
-    /* Give the user whatever width was asked for */
-    ifp->if_width = width;
-    ifp->if_height = height;
-
-    fbinterp = Tcl_CreateInterp();
-
-    if (Tcl_Init(fbinterp) == TCL_ERROR) {
-       fb_log("Tcl_Init returned error in fb_open.");
-    }
-
-    if (Tcl_Eval(fbinterp, cmd) != TCL_OK) {
-       fb_log("Error returned attempting to start tk in fb_open.");
-    }
-
-    fbwin = Tk_MainWindow(fbinterp);
-
-    Tk_GeometryRequest(fbwin, width, height);
-
-    Tk_MakeWindowExist(fbwin);
-
-    sprintf(image_create_cmd,
-           "image create photo fb_tk_photo -height %d -width %d",
-           width, height);
-
-    if (Tcl_Eval(fbinterp, image_create_cmd) != TCL_OK) {
-       fb_log("Error returned attempting to create image in fb_open.");
-    }
-
-    if ((fbphoto = Tk_FindPhoto(fbinterp, "fb_tk_photo")) == NULL) {
-       fb_log("Image creation unsuccessful in fb_open.");
-    }
-
-    sprintf(canvas_create_cmd,
-           "canvas .fb_tk_canvas -highlightthickness 0 -height %d -width %d", 
width, height);
-
-    sprintf (reportcolorcmd,
-            "bind . <Button-2> {puts \"At image (%%x, [expr %d - %%y]), real 
RGB = ([fb_tk_photo get %%x %%y])\n\"}", height);
-
-    if (Tcl_Eval(fbinterp, canvas_create_cmd) != TCL_OK) {
-       fb_log("Error returned attempting to create canvas in fb_open.");
-    }
-
-    if (Tcl_Eval(fbinterp, canvas_pack_cmd) != TCL_OK) {
-       fb_log("Error returned attempting to pack canvas in fb_open. %s",
-              Tcl_GetStringResult(fbinterp));
-    }
-
-    if (Tcl_Eval(fbinterp, place_image_cmd) != TCL_OK) {
-       fb_log("Error returned attempting to place image in fb_open. %s",
-              Tcl_GetStringResult(fbinterp));
-    }
-
-    /* Set our Tcl variable pertaining to whether a
-     * window closing event has been seen from the
-     * Window manager.  WM_DELETE_WINDOW will be
-     * bound to a command setting this variable to
-     * the string "close", and a vwait watching
-     * for a change to the CloseWindow variable ensures
-     * a "lingering" tk window.
-     */
-    Tcl_SetVar(fbinterp, "CloseWindow", "open", 0);
-    if (Tcl_Eval(fbinterp, wmclosecmd) != TCL_OK) {
-       fb_log("Error binding WM_DELETE_WINDOW.");
-    }
-    if (Tcl_Eval(fbinterp, bindclosecmd) != TCL_OK) {
-       fb_log("Error binding right mouse button.");
-    }
-    if (Tcl_Eval(fbinterp, reportcolorcmd) != TCL_OK) {
-       fb_log("Error binding middle mouse button.");
-    }
-
-    while (Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT));
-
-    /* FIXME: malloc() is necessary here because there are callers
-     * that acquire a BU_SYM_SYSCALL semaphore for libfb calls.
-     * this should be investigated more closely to see if the
-     * semaphore acquires are critical or if they can be pushed
-     * down into libfb proper.  in the meantime, manually call
-     * malloc()/free().
-     */
-    buffer = (char *)malloc(sizeof(uint32_t)*3+ifp->if_width*3);
-    linebuffer = (char *)malloc(ifp->if_width*3);
-    tkwrite_buffer = (char *)malloc(ifp->if_width*3);
-
-    if (pipe(p) == -1) {
-       perror("pipe failed");
-    }
-
-    pid = fork();
-    if (pid < 0) {
-       printf("boo, something bad\n");
-    } else if (pid > 0) {
-       int line = 0;
-       uint32_t lines[3];
-       int i;
-       int y[2];
-       y[0] = 0;
-
-       /* parent */
-       while (y[0] >= 0) {
-           int count;
-
-           /* If the Tk window gets a close event, bail */
-           if (BU_STR_EQUAL(Tcl_GetVar(fbinterp, "CloseWindow", 0), "close")) {
-               free(buffer);
-               free(linebuffer);
-               free(tkwrite_buffer);
-               fclose(stdin);
-               printf("Close Window event\n");
-               Tcl_Eval(fbinterp, "destroy .");
-               bu_exit(0, NULL);
-           }
-
-           /* Unpack inputs from pipe */
-           count = read(p[0], buffer, sizeof(uint32_t)*3+ifp->if_width*3);
-           memcpy(lines, buffer, sizeof(uint32_t)*3);
-           memcpy(linebuffer, buffer+sizeof(uint32_t)*3, ifp->if_width*3);
-           y[0] = ntohl(lines[0]);
-           count = ntohl(lines[1]);
-
-           if (y[0] < 0) {
-               break;
-           }
-
-           line++;
-           block.pixelPtr = (unsigned char *)linebuffer;
-           block.width = count;
-           block.pitch = 3 * ifp->if_width;
-
-#if defined(TK_MAJOR_VERSION) && TK_MAJOR_VERSION >= 8 && 
defined(TK_MINOR_VERSION) && TK_MINOR_VERSION >= 5
-           Tk_PhotoPutBlock(fbinterp, fbphoto, &block, 0, ifp->if_height-y[0], 
count, 1, TK_PHOTO_COMPOSITE_SET);
-#else
-           Tk_PhotoPutBlock(fbinterp, &block, 0, ifp->if_height-y[0], count, 
1, TK_PHOTO_COMPOSITE_SET);
-#endif
-
-           do {
-               i = Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT);
-           } while (i);
-       }
-       /* very bad things will happen if the parent does not terminate here */
-       free(buffer);
-       free(linebuffer);
-       free(tkwrite_buffer);
-       fclose(stdin);
-       Tcl_Eval(fbinterp, "vwait CloseWindow");
-       if (BU_STR_EQUAL(Tcl_GetVar(fbinterp, "CloseWindow", 0), "close")) {
-           printf("Close Window event\n");
-           Tcl_Eval(fbinterp, "destroy .");
-       }
-       bu_exit(0, NULL);
-    } else {
-       /* child */
-       printf("IMA CHILD\n");
-       fflush(stdout);
-    }
-
-    return 0;
-}
-
-HIDDEN struct fb_platform_specific *
-tk_get_fbps(uint32_t UNUSED(magic))
-{
-        return NULL;
-}
-
-
-HIDDEN void
-tk_put_fbps(struct fb_platform_specific *UNUSED(fbps))
-{
-        return;
-}
-
-HIDDEN int
-tk_open_existing(fb *UNUSED(ifp), int UNUSED(width), int UNUSED(height), 
struct fb_platform_specific *UNUSED(fb_p))
-{
-        return 0;
-}
-
-HIDDEN int
-tk_close_existing(fb *UNUSED(ifp))
-{
-        return 0;
-}
-
-HIDDEN int
-tk_configure_window(fb *UNUSED(ifp), int UNUSED(width), int UNUSED(height))
-{
-        return 0;
-}
-
-HIDDEN int
-tk_refresh(fb *UNUSED(ifp), int UNUSED(x), int UNUSED(y), int UNUSED(w), int 
UNUSED(h))
-{
-        return 0;
-}
-
-HIDDEN int
-fb_tk_close(fb *ifp)
-{
-    int y[2];
-    int ret;
-    y[0] = -1;
-    y[1] = 0;
-    printf("Entering fb_tk_close\n");
-    FB_CK_FB(ifp);
-    ret = write(p[1], y, sizeof(y));
-    close(p[1]);
-    printf("Sent write (ret=%d) from fb_tk_close\n", ret);
-    return 0;
-}
-
-
-HIDDEN int
-tk_clear(fb *ifp, unsigned char *pp)
-{
-    FB_CK_FB(ifp);
-    if (pp == 0)
-       fb_log("fb_clear(0x%lx, NULL)\n", (unsigned long)ifp);
-    else
-       fb_log("fb_clear(0x%lx, &[%d %d %d])\n",
-              (unsigned long)ifp,
-              (int)(pp[RED]), (int)(pp[GRN]),
-              (int)(pp[BLU]));
-    return 0;
-}
-
-
-HIDDEN ssize_t
-tk_read(fb *ifp, int x, int y, unsigned char *pixelp, size_t count)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_read(0x%lx, %4d, %4d, 0x%lx, %ld)\n",
-          (unsigned long)ifp, x, y,
-          (unsigned long)pixelp, (long)count);
-    return (ssize_t)count;
-}
-
-
-HIDDEN ssize_t
-tk_write(fb *ifp, int UNUSED(x), int y, const unsigned char *pixelp, size_t 
count)
-{
-    uint32_t line[3];
-
-    FB_CK_FB(ifp);
-    /* Set local values of Tk_PhotoImageBlock */
-    block.pixelPtr = (unsigned char *)pixelp;
-    block.width = count;
-    block.pitch = 3 * ifp->if_width;
-
-    /* Pack values to be sent to parent */
-    line[0] = htonl(y);
-    line[1] = htonl((long)count);
-    line[2] = 0;
-
-    memcpy(tkwrite_buffer, line, sizeof(uint32_t)*3);
-    memcpy(tkwrite_buffer+sizeof(uint32_t)*3, block.pixelPtr, 3 * 
ifp->if_width);
-
-    /* Send values and data to parent for display */
-    if (write(p[1], tkwrite_buffer, 3 * ifp->if_width + 3*sizeof(uint32_t)) == 
-1) {
-       perror("Unable to write to pipe");
-       bu_snooze(BU_SEC2USEC(1));
-    }
-
-    return (ssize_t)count;
-}
-
-
-HIDDEN int
-tk_rmap(fb *ifp, ColorMap *cmp)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_rmap(0x%lx, 0x%lx)\n",
-          (unsigned long)ifp, (unsigned long)cmp);
-    return 0;
-}
-
-
-HIDDEN int
-tk_wmap(fb *ifp, const ColorMap *cmp)
-{
-    int i;
-
-    FB_CK_FB(ifp);
-    if (cmp == NULL)
-       fb_log("fb_wmap(0x%lx, NULL)\n",
-              (unsigned long)ifp);
-    else
-       fb_log("fb_wmap(0x%lx, 0x%lx)\n",
-              (unsigned long)ifp, (unsigned long)cmp);
-
-    if (ifp->if_debug & FB_DEBUG_CMAP && cmp != NULL) {
-       for (i = 0; i < 256; i++) {
-           fb_log("%3d: [ 0x%4lx, 0x%4lx, 0x%4lx ]\n",
-                  i,
-                  (unsigned long)cmp->cm_red[i],
-                  (unsigned long)cmp->cm_green[i],
-                  (unsigned long)cmp->cm_blue[i]);
-       }
-    }
-
-    return 0;
-}
-
-
-HIDDEN int
-tk_view(fb *ifp, int xcenter, int ycenter, int xzoom, int yzoom)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_view(%p, %4d, %4d, %4d, %4d)\n",
-          (void *)ifp, xcenter, ycenter, xzoom, yzoom);
-    fb_sim_view(ifp, xcenter, ycenter, xzoom, yzoom);
-    return 0;
-}
-
-
-HIDDEN int
-tk_getview(fb *ifp, int *xcenter, int *ycenter, int *xzoom, int *yzoom)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_getview(%p, %p, %p, %p, %p)\n",
-          (void *)ifp, (void *)xcenter, (void *)ycenter, (void *)xzoom, (void 
*)yzoom);
-    fb_sim_getview(ifp, xcenter, ycenter, xzoom, yzoom);
-    fb_log(" <= %d %d %d %d\n",
-          *xcenter, *ycenter, *xzoom, *yzoom);
-    return 0;
-}
-
-
-HIDDEN int
-tk_setcursor(fb *ifp, const unsigned char *bits, int xbits, int ybits, int 
xorig, int yorig)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_setcursor(%p, %p, %d, %d, %d, %d)\n",
-          (void *)ifp, (void *)bits, xbits, ybits, xorig, yorig);
-    return 0;
-}
-
-
-HIDDEN int
-tk_cursor(fb *ifp, int mode, int x, int y)
-{
-    fb_log("fb_cursor(0x%lx, %d, %4d, %4d)\n",
-          (unsigned long)ifp, mode, x, y);
-    fb_sim_cursor(ifp, mode, x, y);
-    return 0;
-}
-
-
-HIDDEN int
-tk_getcursor(fb *ifp, int *mode, int *x, int *y)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_getcursor(%p, %p, %p, %p)\n",
-          (void *)ifp, (void *)mode, (void *)x, (void *)y);
-    fb_sim_getcursor(ifp, mode, x, y);
-    fb_log(" <= %d %d %d\n", *mode, *x, *y);
-    return 0;
-}
-
-
-HIDDEN int
-tk_readrect(fb *ifp, int xmin, int ymin, int width, int height, unsigned char 
*pp)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_readrect(0x%lx, (%4d, %4d), %4d, %4d, 0x%lx)\n",
-          (unsigned long)ifp, xmin, ymin, width, height,
-          (unsigned long)pp);
-    return width*height;
-}
-
-
-HIDDEN int
-tk_writerect(fb *ifp, int xmin, int ymin, int width, int height, const 
unsigned char *pp)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_writerect(0x%lx, %4d, %4d, %4d, %4d, 0x%lx)\n",
-          (unsigned long)ifp, xmin, ymin, width, height,
-          (unsigned long)pp);
-    return width*height;
-}
-
-
-HIDDEN int
-tk_bwreadrect(fb *ifp, int xmin, int ymin, int width, int height, unsigned 
char *pp)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_bwreadrect(0x%lx, (%4d, %4d), %4d, %4d, 0x%lx)\n",
-          (unsigned long)ifp, xmin, ymin, width, height,
-          (unsigned long)pp);
-    return width*height;
-}
-
-
-HIDDEN int
-tk_bwwriterect(fb *ifp, int xmin, int ymin, int width, int height, const 
unsigned char *pp)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_bwwriterect(0x%lx, %4d, %4d, %4d, %4d, 0x%lx)\n",
-          (unsigned long)ifp, xmin, ymin, width, height,
-          (unsigned long)pp);
-    return width*height;
-}
-
-
-HIDDEN int
-tk_poll(fb *ifp)
-{
-    FB_CK_FB(ifp);
-    while (Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT));
-    fb_log("fb_poll(0x%lx)\n", (unsigned long)ifp);
-    return 0;
-}
-
-
-HIDDEN int
-tk_flush(fb *ifp)
-{
-    FB_CK_FB(ifp);
-    fb_log("if_flush(0x%lx)\n", (unsigned long)ifp);
-    return 0;
-}
-
-
-HIDDEN int
-tk_free(fb *ifp)
-{
-    FB_CK_FB(ifp);
-    fb_log("fb_free(0x%lx)\n", (unsigned long)ifp);
-    return 0;
-}
-
-
-/*ARGSUSED*/
-HIDDEN int
-tk_help(fb *ifp)
-{
-    FB_CK_FB(ifp);
-    fb_log("Description: %s\n", tk_interface.if_type);
-    fb_log("Device: %s\n", ifp->if_name);
-    fb_log("Max width/height: %d %d\n",
-          tk_interface.if_max_width,
-          tk_interface.if_max_height);
-    fb_log("Default width/height: %d %d\n",
-          tk_interface.if_width,
-          tk_interface.if_height);
-    fb_log("\
-Usage: /dev/tk[#]\n\
-  where # is a optional bit vector from:\n\
-    1 debug buffered I/O calls\n\
-    2 show colormap entries in rmap/wmap calls\n\
-    4 show actual pixel values in read/write calls\n");
-    /*8 buffered read/write values - ifdef'd out*/
-
-    return 0;
-}
-
-/* This is the ONLY thing that we "export" */
-fb tk_interface = {
-    0,
-    FB_TK_MAGIC,
-    fb_tk_open,
-    tk_open_existing,
-    tk_close_existing,
-    tk_get_fbps,
-    tk_put_fbps,
-    fb_tk_close,
-    tk_clear,
-    tk_read,
-    tk_write,
-    tk_rmap,
-    tk_wmap,
-    tk_view,
-    tk_getview,
-    tk_setcursor,
-    tk_cursor,
-    tk_getcursor,
-    tk_readrect,
-    tk_writerect,
-    tk_bwreadrect,
-    tk_bwwriterect,
-    tk_configure_window,
-    tk_refresh,
-    tk_poll,
-    tk_flush,
-    tk_free,
-    tk_help,
-    "Debugging Interface",
-    FB_XMAXSCREEN,     /* max width */
-    FB_YMAXSCREEN,     /* max height */
-    "/dev/tk",
-    512,               /* current/default width */
-    512,               /* current/default height */
-    -1,                        /* select fd */
-    -1,                        /* file descriptor */
-    1, 1,              /* zoom */
-    256, 256,          /* window center */
-    0, 0, 0,           /* cursor */
-    PIXEL_NULL,                /* page_base */
-    PIXEL_NULL,                /* page_curp */
-    PIXEL_NULL,                /* page_endp */
-    -1,                        /* page_no */
-    0,                 /* page_ref */
-    0L,                        /* page_curpos */
-    0L,                        /* page_pixels */
-    0,                 /* debug */
-    0,                 /* refresh rate */
-    {0}, /* u1 */
-    {0}, /* u2 */
-    {0}, /* u3 */
-    {0}, /* u4 */
-    {0}, /* u5 */
-    {0}  /* u6 */
-};
-
-
-
-#else
-
-/* quell empty-compilation unit warnings */
-static const int unused = 0;
-
-#endif /* IF_TK */
-
-/*
- * Local Variables:
- * mode: C
- * tab-width: 8
- * indent-tabs-mode: t
- * c-file-style: "stroustrup"
- * End:
- * ex: shiftwidth=4 tabstop=8
- */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to