Diff for /np2/win9x/dclock.cpp between versions 1.3 and 1.4

version 1.3, 2003/10/21 11:22:05 version 1.4, 2005/02/07 14:46:14
Line 14 Line 14
   
 // ------------------------------------------------------------------ font1  // ------------------------------------------------------------------ font1
   
 static const BYTE clockchr1[11][16] = {  static const UINT8 clockchr1[11][16] = {
                         {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},                          {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},
                         {0x78, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x78,},                          {0x78, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x78,},
                         {0x30, 0x70, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,},                          {0x30, 0x70, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,},
Line 57  static void resetfont1(void) { Line 57  static void resetfont1(void) {
 // ------------------------------------------------------------------ font2  // ------------------------------------------------------------------ font2
   
 // 5x9  // 5x9
 static const BYTE clockchr2[11][16] = {  static const UINT8 clockchr2[11][16] = {
                         {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},                          {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},
                         {0x00, 0x00, 0x30, 0x48, 0x88, 0x88, 0x88, 0x88, 0x70,},                          {0x00, 0x00, 0x30, 0x48, 0x88, 0x88, 0x88, 0x88, 0x70,},
                         {0x10, 0x30, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20,},                          {0x10, 0x30, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20,},
Line 101  static void resetfont2(void) { Line 101  static void resetfont2(void) {
 // ------------------------------------------------------------------ font3  // ------------------------------------------------------------------ font3
   
 // 4x9  // 4x9
 static const BYTE clockchr3[11][16] = {  static const UINT8 clockchr3[11][16] = {
                         {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},                          {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},
                         {0x60, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x60,},                          {0x60, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x60,},
                         {0x20, 0x60, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,},                          {0x20, 0x60, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,},
Line 144  static void resetfont3(void) { Line 144  static void resetfont3(void) {
 // ------------------------------------------------------------------ font4  // ------------------------------------------------------------------ font4
   
 // 5x8  // 5x8
 static const BYTE clockchr4[11][16] = {  static const UINT8 clockchr4[11][16] = {
                         {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},                          {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},
                         {0x00, 0x70, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x70,},                          {0x00, 0x70, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x70,},
                         {0x00, 0x60, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70,},                          {0x00, 0x60, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70,},
Line 178  static void resetfont4(void) { Line 178  static void resetfont4(void) {
   
 // ------------------------------------------------------------------ font5  // ------------------------------------------------------------------ font5
   
 static const BYTE clockchr5[11][16] = {  static const UINT8 clockchr5[11][16] = {
                         {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},                          {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},
                         {0x00, 0x00, 0x70, 0x88, 0x88, 0x88, 0x88, 0x88, 0x70,},                          {0x00, 0x00, 0x70, 0x88, 0x88, 0x88, 0x88, 0x88, 0x70,},
                         {0x00, 0x00, 0x20, 0x60, 0x20, 0x20, 0x20, 0x20, 0x20,},                          {0x00, 0x00, 0x20, 0x60, 0x20, 0x20, 0x20, 0x20, 0x20,},
Line 221  static void resetfont5(void) { Line 221  static void resetfont5(void) {
 // ------------------------------------------------------------------ font6  // ------------------------------------------------------------------ font6
   
 // 4x6  // 4x6
 static const BYTE clockchr6[11][16] = {  static const UINT8 clockchr6[11][16] = {
                         {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},                          {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},
                         {0x00, 0x00, 0x00, 0x60, 0x90, 0x90, 0x90, 0x90, 0x60,},                          {0x00, 0x00, 0x00, 0x60, 0x90, 0x90, 0x90, 0x90, 0x60,},
                         {0x00, 0x00, 0x00, 0x20, 0x60, 0x20, 0x20, 0x20, 0x20,},                          {0x00, 0x00, 0x00, 0x20, 0x60, 0x20, 0x20, 0x20, 0x20,},
Line 262  static void resetfont6(void) { Line 262  static void resetfont6(void) {
 // ------------------------------------------------------------------------  // ------------------------------------------------------------------------
   
 typedef struct {  typedef struct {
 const BYTE      *fnt;  const UINT8     *fnt;
 const DCPOS     *pos;  const DCPOS     *pos;
         void    (*init)(void);          void    (*init)(void);
 } DCLOCKFNT;  } DCLOCKFNT;
Line 286  void dclock_init(void) { Line 286  void dclock_init(void) {
   
 void dclock_init8(void) {  void dclock_init8(void) {
   
         BYTE    i, j;          UINT8   i, j;
         DWORD   work = 0;                                                       // vc++4.2          DWORD   work = 0;                                                       // vc++4.2
   
         for (i=0; i<16; i++) {          for (i=0; i<16; i++) {
Line 328  const DCLOCKFNT *fnt; Line 328  const DCLOCKFNT *fnt;
                         np2oscfg.clk_x = 0;                          np2oscfg.clk_x = 0;
                 }                  }
         }          }
         if (np2oscfg.clk_fnt >= (sizeof(fonttype) / sizeof(DCLOCKFNT))) {          if (np2oscfg.clk_fnt >= NELEMENTS(fonttype)) {
                 np2oscfg.clk_fnt = 0;                  np2oscfg.clk_fnt = 0;
         }          }
   
Line 344  const DCLOCKFNT *fnt; Line 344  const DCLOCKFNT *fnt;
 void dclock_callback(void) {  void dclock_callback(void) {
   
         int                     i;          int                     i;
         BYTE            count = 13;          UINT8           count = 13;
         BYTE            buf[8];          UINT8           buf[8];
         _SYSTIME        st;          _SYSTIME        st;
   
         if ((scrnmng_isfullscreen()) && (dclock.clk_x)) {          if ((scrnmng_isfullscreen()) && (dclock.clk_x)) {
Line 386  BOOL dclock_disp(void) { Line 386  BOOL dclock_disp(void) {
   
   
 #if 0  #if 0
 LABEL void __fastcall dclock_cntdown(BYTE value) {  LABEL void __fastcall dclock_cntdown(UINT8 value) {
   
         __asm {          __asm {
                                 cmp             np2oscfg.clk_x, 0                                  cmp             np2oscfg.clk_x, 0

Removed from v.1.3  
changed lines
  Added in v.1.4


RetroPC.NET-CVS <cvs@retropc.net>