wonx/XDisplayP.h
Hiroaki Sakai 9c414a9117 Fixed the display range of screen2_set_window ().
In the explanation of screen 2 _ set _ window () of the manual, "width and height of the display area"
Although it is written, in fact it operates with "horizontal width of display area + 1 and vertical width + 1"
want to see?  (Unconfirmed), do not you have to do -1?
Or, in actual operation in WonderWitch,
ex = sx + WWScreen_GetDrawWidth (screen);
Not
ex = WWScreen_GetDrawWidth (screen);
It may be.

Implemented sprite enable / disable.

LCD color map, palette, character, sprite data dump function implemented.

Improve display message when calling function.

Version 0.0.3 alpha - from wonx-a03.tar.gz
2000-09-28 12:00:00 +09:00

69 lines
1.8 KiB
C

#ifndef _XDisplayP_h_INCLUDED_
#define _XDisplayP_h_INCLUDED_
/*****************************************************************************/
/* ここから */
/*****************************************************************************/
#include "XDisplay.h"
#include <signal.h>
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>
/*****************************************************************************/
/* クラスの定義 */
/*****************************************************************************/
typedef struct _XDisplay {
XtAppContext app_context;
Widget toplevel;
Display * display;
Window root_window;
Colormap colormap;
Cardinal depth;
Dimension width, height;
int size;
Window lcd_window;
Pixmap lcd_pixmap;
GC copy_gc;
GC color_gc[16];
/* テキストスクリーンへの文字表示用のフォント */
Font font;
GC font_gc;
/* キーの状態 */
unsigned int key_press;
/* LCD描画のフラグ */
int lcd_draw;
/* ダンプ出力のフラグ */
int color_map_print;
int palette_print;
int character_print;
int sprite_print;
} _XDisplay;
/*****************************************************************************/
/* ここまで */
/*****************************************************************************/
#endif
/*****************************************************************************/
/* End of File. */
/*****************************************************************************/