Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1664 pj 1
/* ------------------- */
2
/*  Information panel  */
3
/* ------------------- */
4
 
5
#include "include/auto.h"
6
#include "include/const.h"
7
 
8
extern sem_t grx_mutex;
9
 
10
/* ------------------------------------------------------------------ */
11
 
12
 
13
void cmd_display()
14
{
15
  point p1;
16
 
17
  p1.x = TRACK_X1;
18
  p1.y = TRACK_Y2+3;
19
 
20
  sem_wait(&grx_mutex);
21
  grx_rect(p1.x,   p1.y,   p1.x+CMD_WIDTH,   p1.y+CMD_HEIGHT,   BLUE);
22
  grx_rect(p1.x+1, p1.y+1, p1.x+CMD_WIDTH-1, p1.y+CMD_HEIGHT-1, CYAN);
23
  grx_rect(p1.x+2, p1.y+2, p1.x+CMD_WIDTH-2, p1.y+CMD_HEIGHT-2, LIGHTBLUE);
24
  grx_text("## HIGHWAY EK RASTA ##",
25
	   p1.x+8, p1.y+8, YELLOW, BLACK);
26
  grx_text("##--DARE not cross the ROAD--------- ##",
27
	   p1.x+8, p1.y+16, YELLOW, BLACK);
28
  grx_text("KAUSHIK", p1.x+8, p1.y+24, GREEN, BLACK);
29
  grx_text("GURMIT", p1.x+120, p1.y+24, GREEN, BLACK);
30
  grx_text("AVINASH", p1.x+8, p1.y+32, GREEN, BLACK);
31
  grx_text("THE THREE AMIGOS", p1.x+120, p1.y+32, RED, BLACK);
32
 
33
  grx_text("Command keys            ", p1.x+8, p1.y+48, LIGHTBLUE, BLACK);
34
  grx_text("press A to ascend and Z to descend--", p1.x+8, p1.y+56, LIGHTBLUE, BLACK);
35
  grx_text("ESC exit to DOS",       p1.x+8, p1.y+80, CYAN, BLACK);
36
 
37
  sem_post(&grx_mutex);
38
 
39
}
40
 
41
/* ------------------------------------------------------------------ */
42