Skip to content

Commit

Permalink
Merge pull request #10 from tanabi/9
Browse files Browse the repository at this point in the history
#9 fixed splash screen to show real version number
  • Loading branch information
mdadams authored Jul 17, 2023
2 parents ad9e5fe + 097e7a1 commit bb0cebf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 78 deletions.
35 changes: 0 additions & 35 deletions src/bits/xv_rev

This file was deleted.

22 changes: 0 additions & 22 deletions src/bits/xv_ver

This file was deleted.

27 changes: 6 additions & 21 deletions src/xvdflt.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include "bits/logo_out"
#include "bits/xv_jhb"
#include "bits/xv_cpyrt"
#include "bits/xv_rev"
#include "bits/xv_ver"
#include "bits/xf_left"
/* #include "bits/xf_right" not used */
#include "bits/font5x9.h"
Expand Down Expand Up @@ -105,23 +103,14 @@ void LoadDfltPic(pinfo)
xbm2pic((byte *) xv_cpyrt_bits, xv_cpyrt_width, xv_cpyrt_height,
dfltpic, DWIDE, DHIGH, DWIDE/2, 203, 250);

i = xv_ver_width + xv_rev_width + 30;

xbm2pic((byte *) xv_ver_bits, xv_ver_width, xv_ver_height,
dfltpic, DWIDE, DHIGH, DWIDE/2 - (i/2) + xv_ver_width/2+1, 220+1,252);
xbm2pic((byte *) xv_rev_bits, xv_rev_width, xv_rev_height,
dfltpic, DWIDE, DHIGH, DWIDE/2 + (i/2) - xv_rev_width/2+1, 220+1,252);

xbm2pic((byte *) xv_ver_bits, xv_ver_width, xv_ver_height,
dfltpic, DWIDE, DHIGH, DWIDE/2 - (i/2) + xv_ver_width/2, 220, 250);
xbm2pic((byte *) xv_rev_bits, xv_rev_width, xv_rev_height,
dfltpic, DWIDE, DHIGH, DWIDE/2 + (i/2) - xv_rev_width/2, 220, 250);
strncpy(str, XV_REVDATE, sizeof(str));
DrawStr2Pic(str, DWIDE/2+1, 223+1, dfltpic, DWIDE, DHIGH, 252);
DrawStr2Pic(str, DWIDE/2, 223, dfltpic, DWIDE, DHIGH, 250);

strcpy(str,"Press <right> mouse button for menu.");
DrawStr2Pic(str, DWIDE/2+1, 241+1, dfltpic, DWIDE, DHIGH, 252);
DrawStr2Pic(str, DWIDE/2, 241, dfltpic, DWIDE, DHIGH, 250);


#ifdef REGSTR
strcpy(str,REGSTR);
#else
Expand Down Expand Up @@ -200,13 +189,9 @@ static void loadOldDfltPic(pinfo)
xbm2pic((byte *) xv_cpyrt_bits, xv_cpyrt_width, xv_cpyrt_height,
dfltpic, DWIDE, DHIGH, DWIDE/2, 203, 102);

i = xv_ver_width + xv_rev_width + 30;

xbm2pic((byte *) xv_ver_bits, xv_ver_width, xv_ver_height,
dfltpic, DWIDE, DHIGH, DWIDE/2 - (i/2) + xv_ver_width/2, 220, 102);

xbm2pic((byte *) xv_rev_bits, xv_rev_width, xv_rev_height,
dfltpic, DWIDE, DHIGH, DWIDE/2 + (i/2) - xv_rev_width/2, 220, 102);
strncpy(str, XV_REVDATE, sizeof(str));
DrawStr2Pic(str, DWIDE/2+1, 223+1, dfltpic, DWIDE, DHIGH, 252);
DrawStr2Pic(str, DWIDE/2, 223, dfltpic, DWIDE, DHIGH, 250);

strcpy(str,"Press <right> mouse button for menu.");
DrawStr2Pic(str, DWIDE/2, 241, dfltpic, DWIDE, DHIGH, 102);
Expand Down

0 comments on commit bb0cebf

Please sign in to comment.