X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcrt.h;h=93941d591a2db8eea5263dbe473f302582c90bbc;hb=42ce069915679a56208da34d46af2000c85ba64b;hp=7eee5ac4bb9ca16eef78f945329379ea93881cdb;hpb=44827d09c37f628755c0c19f9d8c81a36721efe1;p=sympathy.git diff --git a/src/crt.h b/src/crt.h index 7eee5ac..93941d5 100644 --- a/src/crt.h +++ b/src/crt.h @@ -1,17 +1,38 @@ -/* +/* * crt.h: * - * Copyright (c) 2008 James McKenzie , + * Copyright (c) 2008 James McKenzie , * All rights reserved. * */ -/* - * $Id$ +/* + * $Id: crt.h,v 1.18 2008/03/10 11:49:33 james Exp $ */ -/* - * $Log$ +/* + * $Log: crt.h,v $ + * Revision 1.18 2008/03/10 11:49:33 james + * *** empty log message *** + * + * Revision 1.17 2008/03/07 12:37:04 james + * *** empty log message *** + * + * Revision 1.16 2008/03/03 06:04:42 james + * *** empty log message *** + * + * Revision 1.15 2008/03/02 10:37:56 james + * *** empty log message *** + * + * Revision 1.14 2008/02/28 16:57:51 james + * *** empty log message *** + * + * Revision 1.13 2008/02/27 09:42:22 james + * *** empty log message *** + * + * Revision 1.12 2008/02/26 23:23:17 james + * *** empty log message *** + * * Revision 1.11 2008/02/26 19:08:27 james * *** empty log message *** * @@ -50,7 +71,7 @@ #ifndef __CRT_H__ #define __CRT_H__ -#define CRT_ROWS 25 +#define CRT_ROWS 60 #define CRT_COLS 132 #define CRT_CELS (CRT_ROWS*CRT_COLS) @@ -90,33 +111,29 @@ #define CRT_COLOR_NORMAL CRT_MAKE_COLOR(CRT_FGCOLOR_NORMAL,CRT_BGCOLOR_NORMAL) -typedef struct __attribute__ ((packed)) -{ +typedef struct __attribute__ ((packed)) { uint32_t chr; uint8_t attr; uint8_t color; } CRT_CA; -typedef struct -{ +typedef struct { int x; int y; } CRT_Pos; -typedef struct -{ +typedef struct { CRT_Pos s; CRT_Pos e; int dir; } CRT_ScrollHint; -typedef struct CRT_struct -{ +typedef struct CRT_struct { CRT_CA screen[CRT_CELS]; CRT_Pos pos; - CRT_ScrollHint sh; int hide_cursor; + CRT_Pos size; } CRT;