Fixed not to draw. Reduced the load on the X server. (Improvements related to WWLCDPanel and XDisplay_DrawLCDWindow () of XDisplay.c) (XDisplay_DrawLCDWindow () in XDisplay.c has useless malloc () Improvement is necessary of that) In WWDisplay.c (WWDisplay_DrawScreen ()) of wonx-a 05 and wonx-a 06 As a result of trying both, wonx - a 05 was faster, so wonx - a 05 was better I decided to use it. Version 0.0.7 alpha - from wonx-a07.tar.gz
41 lines
1.6 KiB
C
41 lines
1.6 KiB
C
#ifndef _WWLCDPanelP_h_INCLUDED_
|
||
#define _WWLCDPanelP_h_INCLUDED_
|
||
|
||
/*****************************************************************************/
|
||
/* ここから */
|
||
/*****************************************************************************/
|
||
|
||
#include "WWLCDPanel.h"
|
||
|
||
/*****************************************************************************/
|
||
/* クラスの定義 */
|
||
/*****************************************************************************/
|
||
|
||
typedef struct _WWLCDPanel {
|
||
int width;
|
||
int height;
|
||
|
||
/* Xサーバの負荷を減らすため,ビットマップを2枚持ち, */
|
||
/* 前回と同じ部分は書き換えないようにする. */
|
||
/* pixel[current] が現在描画中のビットマップになる. */
|
||
/* pixel[1 - current] が前回のビットマップになる. */
|
||
int current;
|
||
|
||
/* all_draw == 1 のときは,前回分が無いので, */
|
||
/* 全部描画することを示す. */
|
||
int all_draw;
|
||
|
||
/* 16色のカラー情報.1バイトで1ピクセル分の情報を持つ */
|
||
unsigned char * pixel[2];
|
||
} _WWLCDPanel;
|
||
|
||
/*****************************************************************************/
|
||
/* ここまで */
|
||
/*****************************************************************************/
|
||
|
||
#endif
|
||
|
||
/*****************************************************************************/
|
||
/* End of File. */
|
||
/*****************************************************************************/
|