Added dump of RGB value when dumping palette data.

Fixed a part of the data dump part.

Changed the line of perl script from / usr / bin / perl to / usr / local / bin / perl.
(On FreeBSD, Japanese perl is in / usr / local / bin)

For disp.c, libwwc.c, a function for reading and acquiring bitmap data of characters,
The type of bitmap data is not unsigned char *, but instead of short int *, long int *
It was modified to an appropriate type.
Let the bitmap of the WWCharacter class be union of uchar, ushort, ulong,
By accessing with an appropriate type in WWCharacter_GetPixel ()
The endian dependence of bitmap data is eliminated.  (i386, confirmed by SPARC)

Fixed how to get the value of WWCharacter_GetPixel () in 16 PACKED color mode.
(The bug that the character was displayed inverted horizontally was resolved)

Stop for 10 seconds at F11, forcibly end with Ctrl-c or F12,
Added iconization with Ctrl-i.  (It was a function that was originally, but I forgot that,
We modified it somewhat to make it formal support)

Move display / non-display change key from p to F10.  Manual correction.

XDisplay.c: generated with XColorGC_CreateFromRGB () with XDisplay_DrawLCDWindow ()
Since we did not Destroy () the XColorGC object, we made a bug that caused memory flow
Fix.  (XColorGC_Destroy (x_color_gc) addition)

Add wonx_include / fcntl.h.  The contents are / usr / include / fcntl.h,
Just include /usr/include/sys/fcntl.h.

Format change of serial output message (output to serial port:).
(I tried to enclose it with "".)
etc.c: wonx_print_character () Fixed.  (Add \ ", \ \ and others)
Fix sout2str.pl.  (Add \ ", \ \ etc .... The above message for serial output
It was modified according to format change)

Added int2sint.pl, filters.pl, challsrc.sh.
Change sys2wonx.pl.

in wonx_include / types.h
typedef unsigned short WORD;
typedef unsigned long DWORD;
To
typedef unsigned short int WORD;
typedef unsigned long int DWORD;
change to.

Fixed README.

Version 2.1 - from wonx-2.1.tar.gz
This commit is contained in:
Hiroaki Sakai
2001-01-13 12:00:00 +09:00
committed by Godzil
parent d3f3c6903d
commit d1cde9116a
28 changed files with 698 additions and 276 deletions

View File

@@ -68,9 +68,9 @@ unsigned int display_status(void);
void font_set_monodata(unsigned int number, unsigned int count,
unsigned char * data);
void font_set_colordata(unsigned int number, unsigned int count,
unsigned char * data);
unsigned short int * data);
void font_get_data(unsigned int number, unsigned int count,
unsigned char * data);
unsigned short int * data);
void font_set_color(unsigned int colors);
unsigned int font_get_color(void);
void screen_set_char(int screen, int x, int y, int w, int h,

32
wonx_include/fcntl.h Normal file
View File

@@ -0,0 +1,32 @@
#ifndef _WONX_SYS_FCNTL_H_
#define _WONX_SYS_FCNTL_H_
#include "filesys.h"
/*
* fcntl.h <20><> /usr/include/fcntl.h <20><><EFBFBD>ɤ߹<C9A4><DFB9><EFBFBD><EFBFBD>Ф褤<D0A4>Τǡ<CEA4>
* <20><><EFBFBD><EFBFBD><EFBFBD>Ϥ<EFBFBD><CFA4>Υե<CEA5><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥϡ<C7A4>
* #include <fcntl.h>
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD><CBA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -Iwonx_include <20>Τ<CEA4>ˤ<EFBFBD><CBA4>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD>ѥ<EFBFBD><D1A5><EFBFBD>
* <20><><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˡ<EFBFBD><CBA1><EFBFBD>ʬ<EFBFBD><CAAC><EFBFBD>Ȥ<EFBFBD><C8A4>ɤ߹<C9A4><DFB9><EFBFBD><EFBFBD>Ǥ<EFBFBD><C7A4>ޤ<EFBFBD><DEA4><EFBFBD>ǽ<EFBFBD><C7BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τǡ<CEA4>
* #include </usr/include/fcntl.h>
* <20>Ȥ<EFBFBD><C8A4>ơ<EFBFBD><C6A1><EFBFBD>ʬ<EFBFBD><CAAC><EFBFBD>Ȥ<EFBFBD><C8A4>ɤ߹<C9A4><DFB9>ޤʤ<DEA4><CAA4><EFBFBD>ˡ<EFBFBD>/usr/include <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4>
*/
/*
* NetBSD <20><> FreeBSD <20>Ǥϡ<C7A4>/usr/include/fcntl.h <20><>
* /usr/include/sys/fcntl.h <20>Ϥޤä<DEA4><C3A4><EFBFBD>Ʊ<EFBFBD><C6B1><EFBFBD>Ǥ<EFBFBD><C7A4>
*
* Solaris <20>Ǥϡ<C7A4>/usr/include/fcntl.h <20><> /usr/include/sys/fcntl.h <20><>
* <20><><EFBFBD>󥯥롼<F3A5AFA5>ɤ<EFBFBD><C9A4>Ƥ<EFBFBD><C6A4>
*
* Linux <20>Ǥϡ<C7A4>/usr/include/fcntl.h <20><><EFBFBD><EFBFBD><EFBFBD>ΤˤʤäƤ<C3A4><C6A4>ơ<EFBFBD>
* /usr/include/sys/fcntl.h <20><> /usr/include/fcntl.h <20>򥤥󥯥롼<F3A5AFA5>ɤ<EFBFBD><C9A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* <20>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤʤäƤ<C3A4><C6A4>
*/
/* <20><><EFBFBD><EFBFBD>ξ<EFBFBD><CEBE><EFBFBD>Ȥ<EFBFBD> include <20><><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD> */
#include </usr/include/fcntl.h>
#include </usr/include/sys/fcntl.h>
#endif

View File

@@ -1,16 +0,0 @@
#ifndef _WONX_SYS_FCNTL_H_
#define _WONX_SYS_FCNTL_H_
/*
* fcntl.h <20><> /usr/include/fcntl.h <20><><EFBFBD>ɤ߹<C9A4><DFB9><EFBFBD><EFBFBD>Ф褤<D0A4>Τǡ<CEA4>
* wonx_include/fcntl.h <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʤ<EFBFBD><CAA4>ۤ<EFBFBD><DBA4><EFBFBD><EFBFBD><EFBFBD><E8A4A4>(wonx_include/fcntl.h <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD>
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD><CBA4>äƤϤ<C6A4><CFA4>ä<EFBFBD><C3A4><EFBFBD><EFBFBD>ɤ߹<C9A4><DFB9>ޤ<EFBFBD><DEA4>Ƥ<EFBFBD><C6A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD><E2A4B7><EFBFBD>ʤ<EFBFBD><CAA4>Τ<EFBFBD>)
* <20><EFBFBD><E2A4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>Υե<CEA5><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τ<CEA4>ʤΤ<CAA4><CEA4><EFBFBD><EFBFBD><EFBFBD><EBA4AB>
*/
#include "filesys.h"
/* <20><>ʬ<EFBFBD><CAAC><EFBFBD>Ȥ<EFBFBD><C8A4>ɤ߹<C9A4><DFB9>ޤʤ<DEA4><CAA4><EFBFBD>ˡ<EFBFBD>/usr/include <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#include </usr/include/fcntl.h>
#endif

View File

@@ -23,8 +23,10 @@ unsigned int wwc_set_color_mode(unsigned int mode);
unsigned int wwc_get_color_mode(void);
void wwc_palette_set_color(unsigned int palette_num, unsigned int color_num, unsigned int rgb);
unsigned int wwc_palette_get_color(unsigned int palette_num, unsigned int color_num);
void wwc_font_set_colordata(unsigned int number, unsigned int count, unsigned char * data);
void wwc_font_get_colordata(unsigned int number, unsigned int count, unsigned char * data);
void wwc_font_set_colordata(unsigned int number, unsigned int count,
unsigned long int * data);
void wwc_font_get_colordata(unsigned int number, unsigned int count,
unsigned long int * data);
unsigned int wwc_get_hardarch(void);
void wwc_clear_font(void);

View File

@@ -16,10 +16,10 @@ typedef unsigned short int ushort;
typedef unsigned long int ulong;
#endif
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef int BOOL;
typedef unsigned char BYTE;
typedef unsigned short int WORD;
typedef unsigned long int DWORD;
typedef int BOOL;
#ifndef far
#define far /* None */