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
49 lines
1.7 KiB
C
49 lines
1.7 KiB
C
#ifndef _WWPaletteP_h_INCLUDED_
|
||
#define _WWPaletteP_h_INCLUDED_
|
||
|
||
/*****************************************************************************/
|
||
/* ここから */
|
||
/*****************************************************************************/
|
||
|
||
#include "WWPalette.h"
|
||
|
||
/*****************************************************************************/
|
||
/* クラスの定義 */
|
||
/*****************************************************************************/
|
||
|
||
typedef struct _WWPalette {
|
||
|
||
int number;
|
||
|
||
/*
|
||
* WonX-2.0 以降から,透明色の判定は WWDisplay で行うように変更したので,
|
||
* WWPalette で透明色を管理する必要は無くなった.一応コードを残しておく.
|
||
*/
|
||
#if 0
|
||
int transparent; /* 0 は透明色になるかどうかのフラグ */
|
||
#endif
|
||
|
||
/* 白黒モードの場合には,カラーマップの8色中から4色を選択 */
|
||
int mapped_color[4]; /* 白黒モードでは,カラーマップの番号(0~7)を持つ */
|
||
|
||
/*
|
||
* 4色カラー,16色カラーモードの場合には,rgb の色を使用する.
|
||
* 4色カラーモードの場合には,0~3までを使用する.
|
||
* 16色カラーモードの場合には,0~15までを全部使用する.
|
||
*/
|
||
int red[16];
|
||
int green[16];
|
||
int blue[16];
|
||
|
||
} _WWPalette;
|
||
|
||
/*****************************************************************************/
|
||
/* ここまで */
|
||
/*****************************************************************************/
|
||
|
||
#endif
|
||
|
||
/*****************************************************************************/
|
||
/* End of File. */
|
||
/*****************************************************************************/
|