void
draw_select_button_graphic (int button, char *graphic)
{
    Rect* b = &scr.select_buttons;
    int x, y, xx, yy;
    if (button < NUMOF_SELECT_BUTTONS_DOWN) {
	x = 8;
	y = 8 + (button * 24);
    } else {
	x = 8 + 24;
	y = 8 + ((button - NUMOF_SELECT_BUTTONS_DOWN) * 24);
    }

    Fgl_putbox (x + b->x, y + b->y, 16, 16, graphic);
    unhighlight_select_button (button);
    hide_mouse ();
    if (select_button_tflag[button] == 0)
    {
	for (yy = -3; yy < 19; yy++)
	    for (xx = -3; xx < 19; xx += 2)
		Fgl_setpixel (x + xx + (yy % 2) + b->x,
			      y + yy + b->y, white (15));
    }
    redraw_mouse ();
}
Beispiel #2
0
void clear_timinfo_lines(char color)
{
int i, k, m, n, col, line;
k=(screen_last_line+1)*text_height;
m=7*text_height;
n=k-m;
hide_mouse(0,26*text_width,n,k);
lir_fillbox(0,n,26*text_width,m,color);
lir_fillbox(0,n-text_height,40*text_width,text_height,color);
col=30;
line=screen_last_line;
for(i=0; i<THREAD_MAX; i++)
  {
  if(thread_command_flag[i]!=THRFLAG_NOT_ACTIVE)
    {
    if(col+11 > screen_last_col)
      {
      col=30;
      line --;
      }
    lir_text(col,line,"          ");
    col+=11;
    }
  }
}
/* Adjust the main window origin, and refresh if necessary */
void
adjust_main_origin (int new_origin_x, int new_origin_y, int refresh)
{
    Rect* mw = &scr.main_win;

    if (new_origin_x < 1) {
	new_origin_x = 1;
    } else if (new_origin_x > WORLD_SIDE_LEN - mw->w / 16 - 1) {
	new_origin_x = WORLD_SIDE_LEN - mw->w / 16 - 1;
    }
    if (new_origin_y < 1) {
	new_origin_y = 1;
    } else if (new_origin_y > WORLD_SIDE_LEN - mw->h / 16 - 1) {
	new_origin_y = WORLD_SIDE_LEN - mw->h / 16 - 1;
    }

    if (new_origin_x == main_screen_originx
	&& new_origin_y == main_screen_originy)
    {
	return;
    }

    main_screen_originx = new_origin_x;
    main_screen_originy = new_origin_y;

    if (refresh) {
	request_main_screen ();
	hide_mouse ();
	refresh_main_screen ();
	redraw_mouse ();
    }
}
Beispiel #4
0
restore_menu()
{
Pull *opull;
Flicmenu *omenu;

opull = cur_pull;
omenu = cur_menu;
cur_pull = NULL;
cur_menu = NULL;
set_top_lines();
cur_pull = opull;
cur_menu = omenu;
hide_mouse();
if (zoom_flag)
	{
	zscale_cursor = 1;
	draw_on_buffer();
	show_mouse();
	zbuf_to_screen();
	}
else
	{
	copy_screen(bscreen, pscreen);
	show_mouse();
	}
}
Beispiel #5
0
static void preview_slide()
/*****************************************************************************
 * Display the cel moving across the screen with current slide settings
 * until right click or key is hit.
 ****************************************************************************/
{
int i;
Rcel *cel = cs.ifi.cel;
Boolean abortable = FALSE;

hide_mouse();
sl_ox = cel->x;
sl_oy = cel->y;
for (;;)
	{
	for (i=0; i<cs.slide_frames; i++)
		{
		slide_seek(i,&abortable);
		check_input(ANY_INPUT);
		if(JSTHIT(KEYHIT|MBRIGHT))
			goto OUT;
		wait_a_jiffy(1);
		}
	}
OUT:
cel->x = sl_ox;
cel->y = sl_oy;
conv_see_cel(cel);
show_mouse();
}
Beispiel #6
0
void error_box::show(char e[])
{
	int x=x1+25,y=y1+60;
	save_video(x1,y1,x2,y2);
	hide_mouse();
	setfillstyle(SOLID_FILL,LIGHTGRAY);
	bar(x1,y1,x2,y2);
	setcolor(BLACK);
	rectangle(x1,y1,x2,y2);
	setfillstyle(SOLID_FILL,BLUE);
	bar(x1,y1,x2,y1+20);
	rectangle(x1,y1,x2,y1+20);
	setcolor(WHITE);
	outtextxy(x1+20,y1+5,"Error !");
	setcolor(RED);
	circle(x,y,20);
	setfillstyle(SOLID_FILL,RED);
	floodfill(x,y,RED);
	setcolor(WHITE);
	line(x-5,y-5,x+5,y+5);
	line(x-5,y+5,x+5,y-5);
	setcolor(BLACK);
	outtextxy(x1+70,y1+40,e);
	setcolor(WHITE);
	line(x1+100,y2-40,x1+140,y2-40);
	line(x1+100,y2-40,x1+100,y2-20);
	setcolor(BLACK);
	line(x1+100,y2-20,x1+140,y2-20);
	line(x1+140,y2-40,x1+140,y2-20);
	outtextxy(x1+110,y2-30,"OK");
	show_mouse();
}
void
draw_module (int module, char *graphic)
{
    int x, y, xx, yy;
    int row, col;
    
    if (module == 0) {
	row = 0;
	col = 0;
    } else {
	row = module % module_rows;
	col = module / module_rows;
    }

    x = 8 + (col * 24);
    y = 8 + (row * 24);

    hide_mouse ();

    Fgl_putbox (x + mbw->x, y + mbw->y, 16, 16, graphic);
    unhighlight_module_button (module);

    /* Modules we don't have enough tech for are greyed out. */
    if (module_tflag[module] == 0)
    {
	for (yy = -3; yy < 19; yy++)
	    for (xx = -3; xx < 19; xx += 2)
		Fgl_setpixel (x + xx + (yy % 2) + mbw->x,
			      y + yy + mbw->y, white (15));
    }
    redraw_mouse ();
}
void check_time(struct pathtype *path)
{
	  timecount++;
	  if (timecount<50) return;
	  timecount=0;
	  oldtime=newtime;
	  if ((newtime=time(NULL)-starttime)>oldtime)
	  {
		  if (mainmover=='b') blacks+=(newtime-oldtime); else whites+=(newtime-oldtime);
		  if (options.analysis)
		  {
				if (mousex>175 && mousey>120) hide_mouse();
				if (mainmover=='b')
				{
					 shownumber(game.blacks[game.movenum]+blacks, 260, 184);
				} else
				{
					 shownumber(game.whites[game.movenum]+whites, 188, 184);
				}
				if (mousex>175 && mousey>120) show_mouse();
				showpath(195,path);
		  }
		  oldtime=newtime;
		  if (options.playstyle==CHAMPIONSHIP || options.playstyle==FIXEDTIME)
		  {
				nomore=(newtime>maxtime);
				if (options.analysis) show_time_bar((int)newtime, (int)maxtime, (mainmover=='b'));
		  }
	  }
}
Beispiel #9
0
void yes_no_box::show(char a[])
{
	save_video(x1,y1,x2,y2);
	setfillstyle(SOLID_FILL,LIGHTGRAY);
	hide_mouse();
	bar(x1,y1,x2,y2);
	setfillstyle(SOLID_FILL,BLUE);
	bar(x1,y1,x2,y1+25);
	setcolor(BLACK);
	rectangle(x1,y1,x2,y2);
	line(x1,y1+25,x2,y1+25);
	setcolor(WHITE);
	outtextxy(x1+5,y1+10,a);
	int x=(x1+x2)/2;
	int y=(y1+y2)/2+50;
	setcolor(WHITE);
	line(x-100,y-10,x-60,y-10);
	line(x-100,y-10,x-100,y+10);
	setcolor(BLACK);
	line(x-100,y+10,x-60,y+10);
	line(x-60,y-10,x-60,y+10);
	outtextxy(x-90,y,"Yes");
	setcolor(WHITE);
	line(x+60,y-10,x+100,y-10);
	line(x+60,y-10,x+60,y+10);
	setcolor(BLACK);
	line(x+60,y+10,x+100,y+10);
	line(x+100,y-10,x+100,y+10);
	outtextxy(x+70,y,"No");
	show_mouse();
}
Beispiel #10
0
static void
set_up_window(GMainLoop *loop, GtkWidget *window, int screen_no){
  static const GdkColor black = {0, 0, 0, 0};
  gtk_window_set_default_size(GTK_WINDOW(window), WIDTH, HEIGHT);

  if (option_fullscreen){
    gtk_window_fullscreen(GTK_WINDOW(window));
  }

  /*if more than one screen is requested, set the screen number.
    otherwise let it fall were it falls */
  if (option_screens > 1 || option_first_screen){
    GdkScreen * screen = gdk_screen_get_default();
    int width = gdk_screen_get_width(screen);
    /* XXX placment heuristic is crap */
    gtk_window_move(GTK_WINDOW(window),
        (width / 2 * screen_no + 200) % width, 50);
  }

  // attach key press signal to key press callback
  gtk_widget_set_events(window, GDK_KEY_PRESS_MASK);
  g_signal_connect(G_OBJECT(window), "key-press-event", G_CALLBACK(key_press_event_cb), NULL);
  g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(destroy_cb), loop);

  gtk_widget_modify_bg(window, GTK_STATE_NORMAL, &black);
  gtk_widget_show_all(window);
  hide_mouse(window);
}
Beispiel #11
0
main()
{
	int probleme;

	DataDecrypt();

	if ( DataCheck() != 0 )
		DataClear();

	linea_init();
	hide_mouse();

	probleme = InitTank();

	if ( !probleme ) {
		InitSys();
		_InitSys();
		InitRand((int)*_Hz200 & 0x7FFF);
		ShowLogo();
		MnRoot();
		_TermSys();
		TermSys();
		}

	TermTank(probleme);

	show_mouse(0);

	return (0);
}
Beispiel #12
0
static void redraw_mouse(void)
{
	if (!fb_active) return; /* We are not drawing */
	if (mouse_x!=background_x||mouse_y!=background_y){
		if (RECTANGLES_INTERSECT(
			background_x, background_x+arrow_width,
			mouse_x, mouse_x+arrow_width,
			background_y, background_y+arrow_height,
			mouse_y, mouse_y+arrow_height)){
			redraw_mouse_sophisticated();
		}else{
			/* Do a normal hide/show */
			get_mouse_background(mouse_buffer);
			memcpy(new_background_buffer,
				mouse_buffer,arrow_area*fb_pixelsize);
			render_mouse_arrow();
			hide_mouse();
			place_mouse();
			memcpy(background_buffer,new_background_buffer
				,arrow_area*fb_pixelsize);
			background_x=mouse_x;
			background_y=mouse_y;
		}
	}
}
Beispiel #13
0
void clear_ampinfo_lines(char color)
{
int k, m, n;
k=(screen_last_line+1)*text_height;
m=8*text_height;
n=k-m;
hide_mouse(0,28*text_width,n,k);
lir_fillbox(0,n,28*text_width,m,color);
}
Beispiel #14
0
void a_wireframe_tween(Tween_state *tween,
	int frames, int speed, 
	Pixel dit_color, Pixel dash_color, Boolean closed,
	int play_mode)
/* Go do a wire-frame simulation of what tween move will look like
   so user can get a sense of what the timing will be before
   he goes to the pixel perfect (and slow) preview or even
   (gasp) to render it. */
{
int i;
long clock;
int scale; 
Marqihdr mh;
Errcode err = Success;
Tw_tlist tlist;
Short_xyz *points;
int point_count;

if (frames < 0)
	return;

if ((err = ts_to_tw_list(tween, closed, &tlist)) < Success)
	goto OUTBUF;
cinit_marqihdr(&mh,dit_color,dash_color,TRUE);

hide_mouse();
clock = pj_clock_1000();
do
	{
	for (i=0; i<frames; i++)
		{
		scale = calc_time_scale(i, frames);
		calc_tween_points(&tlist, closed, scale, &points, &point_count);
		msome_vector((void *)points,point_count,mh.pdot,&mh,
			!closed, sizeof(Short_xyz));
		err = poll_abort();
		clock += speed;
		do wait_sync(); while (clock > pj_clock_1000());
		if (clock < pj_clock_1000())
			clock = pj_clock_1000();
		msome_vector((void *)points, point_count,undo_marqidot,&mh,
			!closed, sizeof(Short_xyz));
		if(err < Success) /* abort */
			goto OUTLOOP;
		}
	} while (play_mode == TWEEN_LOOP);
OUTLOOP:
show_mouse();
OUTBUF:
trash_tw_list(&tlist);
softerr(err, NULL);
}
Beispiel #15
0
static void
video_widget_realize_cb (GtkWidget * widget, gpointer data)
{
    gulong xid = GDK_WINDOW_XID (gtk_widget_get_window (widget));
    video_window_handle = xid;

    //static const GdkColor black = {0, 0, 0, 0};
    gtk_window_set_default_size(GTK_WINDOW(widget), option_width, option_height);
    hide_mouse(widget);
    if (option_fullscreen) {
        gtk_window_fullscreen(GTK_WINDOW(widget));
    }
}
Beispiel #16
0
Errcode play_fli()

/* returns Err_abort if aborted by control c key (Success + 1)
 * if by another key */
{
Errcode err;
int mouse_was_on;
int loops;

	mouse_was_on = hide_mouse();
	pcb.cktime = pj_clock_1000();
	loops = pcb.loops;

	for(;;)
	{
		if( pcb.script_mode 
			&& (pcb.frame_ix + 1) == pcb.flif.hdr.frame_count
			&& --loops == 0 )
		{
			err = Success;
			break;
		}

		for(;;)
		{
			if((err = check_play_abort()) != Success)
				goto loop_aborted;
				
			if((pcb.cktime + pcb.speed) < pj_clock_1000())
				break;
		}
		pcb.cktime += pcb.speed;

		if((pla_seek_frame(pcb.frame_ix + 1)) < Success)
			goto error;

		if(pcb.cktime > pj_clock_1000())	 /* wrap */
			pcb.cktime = pj_clock_1000();

	}

loop_aborted:

	pcb.frame_ix = fli_wrap_frame(&pcb.flif,pcb.frame_ix);

error:
	if(mouse_was_on)
		show_mouse();
	return(err);
}
Beispiel #17
0
void
select_slow (void)
{
    hide_mouse ();
    pause_flag = 0;
    draw_pause (0);
    slow_flag = 1;
    draw_slow (1);
    med_flag = 0;
    draw_med (0);
    fast_flag = 0;
    draw_fast (0);
    redraw_mouse ();
}
Beispiel #18
0
void _close_wndo(Wndo *w)
{
Wscreen *ws;
int screen_wndo;
Boolean was_mouse;

	if(w == NULL)
		return;

	was_mouse = hide_mouse();
	ws = w->W_screen;
	screen_wndo = (&ws->wndo == w);
	/* restore screen behind window if not the screen window and its attached
	 * to the screen */

	if(!screen_wndo && w->W_node.next)
	{
		if(!(w->flags & WNDO_HIDDEN))
		{
			if(w->flags & WNDO_BACKDROP)
				pj_set_rast((Raster *)w, 0); /* clear the area left behind */
			else
				blit_behind(w,pj_blitrect); /* blit back and
										  * restore window behind */
		}

		if(w == icb.iowndo)
		{
			set_cursor(ws->cursor);
			set_procmouse(NULL);
			icb.iowndo = NULL;
		}
		rem_node(&(w->W_node));

		if(!(w->flags & WNDO_BACKDROP)) /* backdrops don't affect clips */
		{
			ws->wndo.rasts[w->W_rastid] = NULL; /* clear pointer for id */
			build_all_clips(ws,1);
			--ws->num_wins;
		}
	}
	pj_close_raster(&w->behind);
	pj_gentle_free(w->ydots);
	pj_gentle_free(w->vchanges);
	if(!screen_wndo)
		pj_free(w);
	if(was_mouse)
		show_mouse();
}
Beispiel #19
0
/* set_for_gem and set_for_jim - functions that let me run at low rez
   while doing file requestor and file io at whatever rez GEM thinks
   it is - necessary for file requestor to appear ok, and for system
   io error dialogs to be centered etc.
   Thanks to Dave Staugas (of Neochrome) for the necessary magic aline
   peeks and pokes! */
set_for_gem()
{
    WORD i;

    wait_penup();
    for (i=0; i<22000; i++)
        ;	/* just stall - hey I'm experimenting */
    remove_critical();
    Setpallete(color_env);	/* restore start-up colors */
    hide_mouse();	/* go reset mouse and */
    vs_clip(handle, 0, screen_bounds);
    gem_rez();		/* screen rez */
    gshow_mouse();	/* to what GEM wants */
    Setscreen(pscreen, pscreen, -1);
}
Beispiel #20
0
//------------------------------------------------------------
void Control()
{
   do
    {
      _1.button_effect();_2.button_effect();_3.button_effect();
      _4.button_effect();_5.button_effect();_6.button_effect();
      _7.button_effect();_8.button_effect();_9.button_effect();
      _ER.button_effect();_1.higlt(curr);

      restrictmouse();     showmouse();
      get_mouse();         getmousepos();
      wait_mouse();        hide_mouse();
    }
    while(1);
}
Beispiel #21
0
static void
bus_call(GstBus * bus, GstMessage *msg, gpointer data)
{
  windows_t *windows = (windows_t *)data;
  if (GST_MESSAGE_TYPE(msg) == GST_MESSAGE_ELEMENT &&
      gst_structure_has_name(msg->structure, "prepare-xwindow-id")){
    g_print("Got prepare-xwindow-id msg. option screens: %d\n", option_screens);
    for (int i = 0; i < option_screens; i++){
      gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(windows->sinks[i]),
          windows->xwindows[i]);
      g_print("connected sink %d to window %lu\n", i, windows->xwindows[i]);
      hide_mouse(windows->gtk_windows[i]);
    }
  }
}
Beispiel #22
0
static void
video_widget_realize_cb(GtkWidget *widget, gpointer data)
{
  windows_t *windows = (windows_t *)data;
  int r = windows->realised;
  if (r < MAX_SCREENS){
    windows->xwindows[r] = GDK_WINDOW_XID(GDK_WINDOW(widget->window));
    g_print("realised window %d with XID %lu\n", r, windows->xwindows[r]);
  }
  else {
    g_print("wtf, there seem to be %d windows!\n", r);
  }
  windows->realised++;
  hide_mouse(widget);
}
Beispiel #23
0
void show_user_parms(void)
{
char s[80];
// Show the user parameters on screen
// and issue hardware commands if required.
// Use hware_flag to direct calls to control_hware() when cpu time 
// is available in case whatever you want to do takes too much time 
// to be done immediately.
// Note that mouse control is done in the narrowband processing thread
// and that you can not use lir_sleep to wait for hardware response here.
hide_mouse(ug.xleft, ug.xright,ug.ytop,ug.ybottom);
sprintf(s,"Par1 %d ",ug.par1);
lir_pixwrite(ug.xleft+6*text_width,ug.ytop+text_height,s);
sprintf(s,"Par2 %f ",ug.par2);
lir_pixwrite(ug.xleft+6*text_width,ug.ytop+2*text_height,s);
}
Beispiel #24
0
void show_user_parms(void)
{
int i;
char s[80];
extern char serport_name[10];
FILE *Fp;
// Show the user parameters on screen
// and issue hardware commands if required.
// Use hware_flag to direct calls to control_hware() when cpu time 
// is available in case whatever you want to do takes too much time 
// to be done immediately.
// Note that mouse control is done in the narrowband processing thread
// and that you can not use lir_sleep to wait for hardware response here.
hide_mouse(ug.xleft, ug.xright,ug.ytop,ug.ybottom);
sprintf(s,"CALIBRATE");
settextcolor(11);
lir_pixwrite(ug.xleft+.5*text_width,ug.ytop+0.35*text_height,s);
sprintf(s,"   CAT FREQUENCY CONTROL FOR TRX: %s ",list[transceiver_number].name);
settextcolor(14);
lir_pixwrite(ug.xleft+10.5*text_width,ug.ytop+0.35*text_height,s);
settextcolor(15);
sprintf(s," SERIAL PORT:%s ",serport_name);
lir_pixwrite(ug.xleft+.5*text_width,ug.ytop+1.5*text_height,s);

settextcolor(7);
show_offset();

//DISPLAY MESSAGES IN  MESSAGE-AREA OF USERGRAPH

// Fill message with blanks up to character MAX_MSGSIZE-2
blankfill_ugmsg(ug_msg0);
blankfill_ugmsg(ug_msg1);
blankfill_ugmsg(ug_msg2);
settextcolor(ug_msg_color);
lir_pixwrite(ug.xleft+31*text_width,ug.ytop+1.5*text_height,ug_msg0);
lir_pixwrite(ug.xleft+31*text_width,ug.ytop+2.5*text_height,ug_msg1);
lir_pixwrite(ug.xleft+31*text_width,ug.ytop+3.5*text_height,ug_msg2);
settextcolor(7);

//save screenposition and offset-values in usergraph, to usergraph parameter file
Fp=fopen(ugfile,"w");
fprintf(Fp,"%d\n%d\n%i\n%i\n",ug.xleft,ug.ytop,serport_number,transceiver_number);
for(i=0; i<NO_OF_BANDS; i++)fprintf(Fp,"%d\n",ug.offs_hz[i]);
for(i=0; i<NO_OF_BANDS; i++)fprintf(Fp,"%d\n",ug.offs_khz[i]);
fclose(Fp);
}
void
do_help_buttons (int x, int y)
{
  int i;
  if (numof_help_buttons <= 0)
    return;
  for (i = 0; i < numof_help_buttons; i++)
    if (x > help_button_x[i]
	&& x < (help_button_x[i] + help_button_w[i])
	&& y > help_button_y[i]
	&& y < (help_button_y[i] + help_button_h[i]))
      {
	hide_mouse ();
	draw_help_page (help_button_s[i]);
	redraw_mouse ();
	break;
      }
}
Beispiel #26
0
int yes_no_box::check()
{
	int x=(x1+x2)/2;
	int y=(y1+y2)/2+50;
	get_button_press(0);
	if(mclick==1)
	{
		hide_mouse();
		if(mx>=x-100 && mx<=x-60 && my>=y-10 && my<=y+10)
		{
			setcolor(BLACK);
			line(x-100,y-10,x-60,y-10);
			line(x-100,y-10,x-100,y+10);
			setcolor(WHITE);
			line(x-100,y+10,x-60,y+10);
			line(x-60,y-10,x-60,y+10);
			delay(100);
			setfillstyle(SOLID_FILL,WHITE);
			bar(x1,y1,x2,y2);
			restore_video(x1,y1,1);
			show_mouse();
			return 1;
		}
		else if(mx>=x+60 && mx<=x+100 && my>=y-10 && my<=y+10)
		{
			setcolor(BLACK);
			line(x+60,y-10,x+100,y-10);
			line(x+60,y-10,x+60,y+10);
			setcolor(WHITE);
			line(x+60,y+10,x+100,y+10);
			line(x+100,y-10,x+100,y+10);
			delay(100);
			setfillstyle(SOLID_FILL,WHITE);
			bar(x1,y1,x2,y2);
			restore_video(x1,y1,1);
			show_mouse();
			return 0;
		}
	}
	show_mouse();
	return -1;
}
Beispiel #27
0
int error_box::check()
{
       get_button_press(0);
       if(mclick==1 && mx>=x1+100 && mx<=x1+140 && my>=y2-40 && my<=y2-20)
       {
		setcolor(BLACK);
		line(x1+100,y2-40,x1+140,y2-40);
		line(x1+100,y2-40,x1+100,y2-20);
		setcolor(WHITE);
		line(x1+100,y2-20,x1+140,y2-20);
		line(x1+140,y2-40,x1+140,y2-20);
		delay(100);
		hide_mouse();
		setfillstyle(SOLID_FILL,WHITE);
		bar(x1,y1,x2,y2);
		show_mouse();
		restore_video(x1,y1,1);
		delay(200);
		return 0;
       }
       return 1;
}
void
highlight_module_button (int module)
{
    int x, y;
    int row, col;

    if (module == 0) {
	row = 0;
	col = 0;
    } else {
	row = module % module_rows;
	col = module / module_rows;
    }

    x = 8 + (col * 24) + mbw->x;
    y = 8 + (row * 24) + mbw->y;

    hide_mouse ();
    draw_small_bezel(x + 1, y + 1,
		     SELECT_BUTTON_WIDTH - 2, SELECT_BUTTON_WIDTH - 2,
		     yellow(0));
    redraw_mouse ();
}
Beispiel #29
0
static Errcode internal_error(Errcode err, char *fmt, ...)
/*****************************************************************************
 * report a fatal internal error, and set builtin_err to Err_reported.
 *
 * in development mode, this gets verbose with us.	normally, it just
 * sets the builtin error code, but punts the (hardcoded English-language)
 * extended error message.
 ****************************************************************************/
{
#ifdef DEVELOPMENT

    char etext[ERRTEXT_SIZE];
    va_list args;
    Boolean mouse_was_on;

    if (err >= Success)
        return err;

    if(!get_errtext(err,etext))
        return builtin_err = err;

    mouse_was_on = show_mouse();
    va_start(args, fmt);
    varg_continu_box(NULL,fmt,args,etext);
    va_end(args);
    if (!mouse_was_on)
        hide_mouse();

    return builtin_err = Err_reported;

#else

    return builtin_err = err;

#endif /* DEVELOPMENT */

}
Beispiel #30
0
void
select_pause (void)
{
    if (pause_flag) {
	/* unpause it */
	if (fast_flag)
	    select_fast ();
	else if (med_flag)
	    select_medium ();
	else if (slow_flag)
	    select_slow ();
	else
	    select_medium ();
    } else {
	/* pause it */
	hide_mouse ();
	pause_flag = 1;
	draw_pause (1);
	draw_slow (0);
	draw_med (0);
	draw_fast (0);
	redraw_mouse ();
    }
}