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
48 lines
1.7 KiB
C
48 lines
1.7 KiB
C
#ifndef _WWTextP_h_INCLUDED_
|
||
#define _WWTextP_h_INCLUDED_
|
||
|
||
/*****************************************************************************/
|
||
/* ここから */
|
||
/*****************************************************************************/
|
||
|
||
#include "WWText.h"
|
||
#include "WWCharacter.h"
|
||
|
||
/*****************************************************************************/
|
||
/* クラスの定義 */
|
||
/*****************************************************************************/
|
||
|
||
typedef struct _WWText {
|
||
|
||
/* テキストの描画情報 */
|
||
|
||
WWScreen screen; /* テキストスクリーン */
|
||
int x, y, width, height; /* テキストウインドウの領域 */
|
||
int base; /* 使用するキャラクタのベース */
|
||
|
||
WWPalette palette;
|
||
|
||
/*
|
||
* テキストフォントは
|
||
* f = WWDisplay_GetForegroundColor(ww_display);
|
||
* b = WWDisplay_GetBackgroundColor(ww_display);
|
||
* で描画する必要があるため,描画のたびにビットマップをコピーする必要がある.
|
||
* で,カラー化の際に,そのように修正した.
|
||
* よって,テキストの初期化時に WWCharacter の配列を作成する必要は
|
||
* 無くなったので,WWCharacter の配列はいずれ削除すること.
|
||
* (WWText_PutCharacter() 参照)
|
||
*/
|
||
WWCharacter font[128]; /* フォント */
|
||
|
||
} _WWText;
|
||
|
||
/*****************************************************************************/
|
||
/* ここまで */
|
||
/*****************************************************************************/
|
||
|
||
#endif
|
||
|
||
/*****************************************************************************/
|
||
/* End of File. */
|
||
/*****************************************************************************/
|