Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splash screen? #9

Closed
oldpink opened this issue Jun 25, 2023 · 12 comments
Closed

Splash screen? #9

oldpink opened this issue Jun 25, 2023 · 12 comments
Labels
enhancement New feature or request

Comments

@oldpink
Copy link

oldpink commented Jun 25, 2023

First, I wanted to say a quick thanks for reviving the previously stagnant XV, still one of the best compact open source image viewers.
The thing that I wanted to make as a request has nothing to do with functionality, but with esthetics, namely the opening splash screen that shows the version as the old 3.10a, even though it is in fact now revised to version 4.1.1.
I'm sure that you would like having that splash reflect that revision change.
Thanks again.

@mdadams
Copy link
Contributor

mdadams commented Jun 25, 2023

You are welcome to submit a pull request to fix this.

@mdadams mdadams added the enhancement New feature or request label Jun 25, 2023
@oldpink
Copy link
Author

oldpink commented Jun 25, 2023

I'm embarrassed to say that I have no idea how to submit one.
I also don't have a fixed splash screen.
Sorry
:(

@tanabi
Copy link
Contributor

tanabi commented Jun 26, 2023

I may go take a look at this, though I suspect the splash screen is a pre-render and those numbers are baked into it. Hopefully I'm wrong though!

@jn64
Copy link

jn64 commented Jul 14, 2023

Looks like the version text is pre-rendered (as X bitmap?) and drawn in the splash screen here (along with the revision date, and the copyright statement before it):

xv/src/xvdflt.c

Lines 108 to 118 in ad9e5fe

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);

A small project for those interested would be to convert the pre-rendered parts to strings like these other parts, which would make it easier to update:

xv/src/xvdflt.c

Lines 120 to 132 in ad9e5fe

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
strcpy(str,"UNREGISTERED COPY: See 'About XV' for registration info.");
#endif
DrawStr2Pic(str, DWIDE/2+1, 258+1, dfltpic, DWIDE, DHIGH, 252);
DrawStr2Pic(str, DWIDE/2, 258, dfltpic, DWIDE, DHIGH, 251);

@oldpink
Copy link
Author

oldpink commented Jul 14, 2023

That sounds like the logical solution.
I have zero programming skills, but there are probably others who do.
I just wish that your revived repository were getting more notice so that others could lend you a hand.
Thanks

@mdadams
Copy link
Contributor

mdadams commented Jul 14, 2023

Hopefully people who are interested in the repository will star it, as this will likely help to increase its visibility. Currently, the repository only has 5 stars.

@tanabi
Copy link
Contributor

tanabi commented Jul 14, 2023

I did my part and starred it. I may have time this weekend to do the conversion proposed by jn64.

@galenhuntington
Copy link

FWIW I recently added this project to nixpkgs. That may in time bring more attention.

@jn64
Copy link

jn64 commented Jul 14, 2023 via email

@mdadams
Copy link
Contributor

mdadams commented Jul 14, 2023

FWIW I recently added this project to nixpkgs. That may in time bring more attention.

@galenhuntington Thanks. I think that that this will help.

mdadams added a commit that referenced this issue Jul 17, 2023
#9 fixed splash screen to show real version number
@tanabi
Copy link
Contributor

tanabi commented Jul 17, 2023

@mdadams You can close this one out too! Thanks for merging it.

@oldpink
Copy link
Author

oldpink commented Jul 17, 2023

Wow!
I just compiled/installed it and it looks great.
Thanks a log...closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants