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

Not a bug: fantastic project! #6

Open
ghaerr opened this issue Jun 8, 2019 · 2 comments
Open

Not a bug: fantastic project! #6

ghaerr opened this issue Jun 8, 2019 · 2 comments

Comments

@ghaerr
Copy link

ghaerr commented Jun 8, 2019

Hello, just wanted to say how much I enjoy your FBPDF, FBFF, and NEATCC projects. Very well done!

I thought you might be interested to know that I ported both FBPDF and FBFF to Microwindows (a small-footprint graphical windowing system that runs on framebuffer, as well as other environments).I took your nicely-designed fb_ api in draw.c and made a few changes so they are identical across FBPDF and FBFF, and moved the keyboard input processing out of the main application into it as well so they are now portable across both environments.

Then, nxdraw.c was added to replace draw.c for the Nano-X environment, which handles some basic window creation, but uses the Nano-X capability of drawing directly into a memory-mapped window framebuffer such that the main application still uses the original fb_ api. All in all, pretty cool and very fast thanks to your neat design.

Now, the nxdraw.c and draw.c files are identical across the FBFF/FBPDF applications, and allow running on framebuffer or Nano-X with a quick change to the Makefile. I forked both projects and the code is there, in case you're interested. A couple bug fixes were made that causes core dumps with no audio playback, and width and height seperate zooms added.

Here's a screenshot of FBPDF running on OSX on Nano-X on SDL, no need to do anything, just wanted to say thanks!!

fbpdf-nano-X

@aligrudi
Copy link
Owner

aligrudi commented Jun 9, 2019 via email

@kalpha2
Copy link

kalpha2 commented Oct 3, 2019

+1 !
Output is so crisp compared to using fbi / fbv
my only 2p (on wishlist) would be:
1p: a startup parameter of zoom fit to page height
2p: some more (intuitive?) keys PgUp PgDn and cursor keys if page not zoomed

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

No branches or pull requests

3 participants