Corresponding to colorization, transparent (transparent color) judgment processing from the WWPalette class
I moved to the WWDisplay class.
Changed the pixel of WWLCDPanel to unsigned short int *. (Color correspondence)
Change the storage format of text fonts. (WWTextFonts.c)
In text display, when displaying WWDisplay_GetForegroundColor (),
Fix to copy by looking at WWDisplay_GetBackgroundColor (). (WWText.c)
(It is no longer necessary to reserve an array of WWCharacter in the WWText class,
Which to delete)
Added palette of border color to WWDisplay class.
We made correspondence to colorization, and added other various corrections.
(Character data storage method, text display, border color processing etc)
With display_control (), display_status (), the bit shift of the border color
Fixed a bug that was 7. (Fixed to 8)
Key input such as F1 is also accepted during loop waiting for interrupt in while (1) {/ * none * /}
Fixed as. (WonXSystem.c's timer interrupt callback function
Add WonXDisplay_PrintData () to WonXTimer_Callback ())
Added fcntl_attention.h, filesys.h, indirect.h, oswork.h, process.h.
(Just include the contents or include appropriate files)
In wonx_configure.h,
Fixed a bug that was supposed to be.
Version 2.0 - from wonx-2.0.tar.gz
71 lines
1.9 KiB
C
71 lines
1.9 KiB
C
#ifndef _XDisplayP_h_INCLUDED_
|
|
#define _XDisplayP_h_INCLUDED_
|
|
|
|
/*****************************************************************************/
|
|
/* ここから */
|
|
/*****************************************************************************/
|
|
|
|
#include "XDisplay.h"
|
|
|
|
#include <signal.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]; /* 白黒表示用のGC */
|
|
|
|
/* 4096色表示用のGCのデータベース(XFireworks から流用) */
|
|
XColorGCDatabase color_gc_database;
|
|
|
|
/* テキストスクリーンへの文字表示用のフォント */
|
|
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. */
|
|
/*****************************************************************************/
|