HIDDEN int mem_setcursor(FBIO *ifp, const unsigned char *bits, int xbits, int ybits, int xorig, int yorig) { if (MI(ifp)->write_thru) { return fb_setcursor(MI(ifp)->fbp, bits, xbits, ybits, xorig, yorig); } return 0; }
/* f b _ S e t u p ( ) */ int fb_Setup(char *file, int size) { if ( BU_STR_EQUAL( file, "/dev/remote" ) ) file = "/dev/debug"; prnt_Event( "Opening device..." ); if (((fbiop = fb_open(file[0] == '\0' ? NULL : file, size, size)) == FBIO_NULL) || (fb_ioinit( fbiop ) == -1) || (fb_wmap( fbiop, COLORMAP_NULL ) == -1)) return 0; (void) fb_setcursor( fbiop, arrowcursor, 16, 16, 0, 0 ); (void) fb_cursor( fbiop, 1, size/2, size/2 ); prnt_Event( (char *) NULL ); return 1; }