/*
    Robot Interface Remote Client
    (C) 2006 Jason Hunt
    nulluser@gmail.com
    
    File: display.h
*/

#ifndef DISPLAY_H
#define DISPLAY_H

#include <windows.h>
#include "types.h"


#define MIN_TEXT_Y  198            // The text box will start no lower than this

#define extra_display_width 200

#define text_x_size 80           // Number of text colums
#define text_y_size 6            // Nuumber of text rows

#define font_x_size 8            // Font size in pixels
#define font_y_size 16           // Font y_size in pixels

#define text_area_height  (text_y_size*font_y_size)  // Size of text area
#define text_area_width  (text_x_size*font_x_size) 

#define sonar_bar_size   8
void update_display(HWND hwnd);          // Display frame buffer and text into
void add_line (char *);         // Add a line of text


void do_paint(HWND hwnd);
void display_resize( void );
void display_buffer_resize(HWND hwnd, LPARAM l);


extern unsigned int display_x;
extern unsigned int display_y;
extern bool display_fps;

#endif



