Added service function. (A service function dumping information for debugging, Added service function for screen drawing ON / OFF control) Specifically, see README. Make the object's destructor called from bios_exit () Add appropriate Destroy function to each object. Delete objects properly We have checked the termination process as a whole, as done. Fix to accept interrupts even during key_wait (). (Previously, only key input was accepted) Some timer interrupts are improved. (UNIXTimer.c) Change the wonx_include directory to wonx. Changed to search the full path to perl automatically and insert it at the beginning of perl script. Makefile review, improvement. Changed ON / OFF of screen drawing to switch according to display level. (See README for details.) Also change to display level lowered by F9 and display level raised by F10. In accordance with that, we have reviewed a part of ON / OFF part of drawing and key input event processing. Fixed to display message when pressing key. Obj ObjListData_GetPrev (ObjListData data) Obj ObjListData_GetNext (ObjListData data) To ObjListData ObjListData_GetPrev (ObjListData data) ObjListData ObjListData_GetNext (ObjListData data) Fixed to. Added install, uninstall target to Makefile. Fixed challsrc.sh. Version 2.2 - from wonx-2.2.tar.gz
47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
#ifndef _WONX_SYS_TEXT_H_
|
|
#define _WONX_SYS_TEXT_H_
|
|
|
|
#include "service.h"
|
|
|
|
#define NUM_PADSPACE 0
|
|
#define NUM_ALIGN_RIGHT 0
|
|
#define NUM_HEXA (1 << 0)
|
|
#define NUM_PADZERO (1 << 1)
|
|
#define NUM_ALIGN_LEFT (1 << 2)
|
|
#define NUM_SIGNED (1 << 3)
|
|
#define NUM_STORE (1 << 7)
|
|
|
|
#define TEXT_MODE_ANK 0
|
|
#define TEXT_MODE_ANK_SJIS 1
|
|
#define TEXT_MODE_SJIS 2
|
|
|
|
#define TEXT_SCREEN_WIDTH 28
|
|
#define TEXT_SCREEN_HEIGHT 18
|
|
|
|
void text_screen_init(void);
|
|
void text_window_init(int x, int y, int w, int h, unsigned int base);
|
|
void text_set_mode(int mode);
|
|
int text_get_mode(void);
|
|
void text_put_char(int x, int y, unsigned int c);
|
|
int text_put_string(int x, int y, char * string);
|
|
int text_put_substring(int x, int y, char * s, int length);
|
|
void text_put_numeric(int x, int y, int length, int format, int number);
|
|
void text_store_numeric(char * buffer, int length, int format, int number);
|
|
void text_fill_char(int x, int y, int length, int c);
|
|
void text_set_palette(int palette_num);
|
|
int text_get_palette(void);
|
|
void text_set_ank_font(int base, int color, int count, void * font);
|
|
void text_set_sjis_font(void * p);
|
|
void text_get_fontdata(int c, void * buffer);
|
|
void text_set_screen(int screen);
|
|
int text_get_screen(void);
|
|
void cursor_display(int flag);
|
|
int cursor_status(void);
|
|
void cursor_set_location(int x, int y, int w, int h);
|
|
unsigned long int cursor_get_location(void);
|
|
void cursor_set_type(int palette_num, int interval);
|
|
unsigned long int cursor_get_type(void);
|
|
int text_printf(int x, int y, const char *format, ...);
|
|
|
|
#endif
|