22#ifndef MADS_CORE_SCREEN_H
23#define MADS_CORE_SCREEN_H
25#include "mads/core/window.h"
44#define hi_magenta 0x0d
48#define colorbyte(f,b) ( ( (b) << 4) + f )
50#define colorhash(color) ((long) ((((long)color.r) << 16) + (((long)color.g) << 8) + (((long)color.b) ) ))
52#define screen_char_add(x,y) ( ( ( (y) * 80) + x) * 2 )
53#define screen_color_add(x,y) ( ( ( ( (y) * 80) + x) * 2 ) + 1 )
56extern int *screen_bound_x;
58extern int screen_video_mode;
59extern int screen_max_x;
60extern int screen_max_y;
62extern int screen_center_x;
63extern int screen_center_y;
65extern int screen_save_mode;
66extern int screen_save_size;
68extern int screen_normal_color;
69extern int screen_hilite_color;
71extern int screen_line_width;
76extern Window screen_active;
81extern void screen_set_size(
short numlines);
86extern void screen_wipe_line(
short ul_x,
short ul_y,
short len,
short wipe_color,
byte wipe_char);
88extern short screen_out(
const char *outstring,
short strcolor,
short selcolor,
short str_x,
short str_y);
89extern short screen_put(
const char *outstring,
short strcolor,
short selcolor,
short str_x,
short str_y);
90extern void screen_set_colors(
int normal_color,
int hilite_color);
91extern void screen_set_line_width(
int line_width);
93extern short screen_show_line(
const char *outstring,
short locx,
short locy);
94extern short screen_write(
const char *outstring);
95extern short screen_write_line(
const char *outstring);
96extern void screen_clear(
int clear_color);
97extern void screen_dominant_mode(
int dominant_mode);
98extern void screen_init(
int video_mode);
99extern void screen_init_dual(
int mono_left);
100extern void screen_shutdown_dual(
int clear_flag);
101extern void screen_init_graphics(
int which_mode);
102extern void screen_shutdown_graphics(
int clear_flag);
103extern void screen_show_spot(
const char *message,
int wx,
int wy,
int class_,
int num);
105extern int screen_printf(
int x,
int y,
const char *
string, ...);
106extern int screen_print(
const char *
string, ...);
108extern void screen_init_text(
int which_mode);
109extern void screen_shutdown_text(
int clear_flag);
110extern void screen_save();
111extern void screen_restore();
112extern short screen_show_wide(
const char *outstring,
short locx,
short locy,
short width);
Definition: display_client.h:113
Definition: atari-screen.h:42