Blame | Last modification | View Log | RSS feed
/* ------------------- */
/* Information panel */
/* ------------------- */
#include "include/auto.h"
#include "include/const.h"
extern sem_t grx_mutex;
/* ------------------------------------------------------------------ */
void cmd_display()
{
point p1;
p1.x = TRACK_X1;
p1.y = TRACK_Y2+3;
sem_wait(&grx_mutex);
grx_rect(p1.x, p1.y, p1.x+CMD_WIDTH, p1.y+CMD_HEIGHT, BLUE);
grx_rect(p1.x+1, p1.y+1, p1.x+CMD_WIDTH-1, p1.y+CMD_HEIGHT-1, CYAN);
grx_rect(p1.x+2, p1.y+2, p1.x+CMD_WIDTH-2, p1.y+CMD_HEIGHT-2, LIGHTBLUE);
grx_text("## HIGHWAY EK RASTA ##",
p1.x+8, p1.y+8, YELLOW, BLACK);
grx_text("##--DARE not cross the ROAD--------- ##",
p1.x+8, p1.y+16, YELLOW, BLACK);
grx_text("KAUSHIK", p1.x+8, p1.y+24, GREEN, BLACK);
grx_text("GURMIT", p1.x+120, p1.y+24, GREEN, BLACK);
grx_text("AVINASH", p1.x+8, p1.y+32, GREEN, BLACK);
grx_text("THE THREE AMIGOS", p1.x+120, p1.y+32, RED, BLACK);
grx_text("Command keys ", p1.x+8, p1.y+48, LIGHTBLUE, BLACK);
grx_text("press A to ascend and Z to descend--", p1.x+8, p1.y+56, LIGHTBLUE, BLACK);
grx_text("ESC exit to DOS", p1.x+8, p1.y+80, CYAN, BLACK);
sem_post(&grx_mutex);
}
/* ------------------------------------------------------------------ */