MantisBT - NetSurf
View Issue Details
0002306NetSurfFramebuffer-specificpublic2015-04-12 05:062018-04-25 18:59
ReporterBrad Conroy 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version3.4 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0002306: Automatic backend, width, height and bpp by default
DescriptionThe framebuffer backend uses hardcoded defaults that are not always optimal.
Ex. raspberry pi with a 320x240 display
Steps To Reproducerun netsurf-framebuffer with no additional options
Additional InformationI recalled writing a patch for puppy linux a couple of years ago,
but do not recall if I submitted a finalized patch or not (classes took up my free coding time).

The code I added/fixed/hacked is at:
http://murga-linux.com/puppy/viewtopic.php?p=697996#697996

It uses the "best available" backend to automatically determine the width/height
(plus a fix for the keymap),
I didn't bother with SDL (which on linux uses xcb or framebuffer indirectly anyhow)
sinc then a Wayland backend was also added (which I have not coded for previously)
and I needed to properly account for tray height on the xcb backend

I would be fine with cleaning up this code for netsurf (including the other backends if possible)
but thought that it may be better to make "auto" the default behavior in libnsfb if no specific
parameters are passed (NULL parameters) instead of just defaulting to SDL (even if it isn't built)
My current code use the maximum values (best for framebuffer).
TagsNo tags attached.
Attached Files

Notes
(0001772)
Brad Conroy   
2018-04-25 18:59   
It's been 3 years now. Is this a wontfix or would you like me to submit an updated patch based on the code in the previous link (possibly updated for wayland) with a fallback to SDL.

Issue History
2015-04-12 05:06Brad ConroyNew Issue
2015-04-12 14:18Vincent SandersStatusnew => acknowledged
2015-04-12 14:18Vincent SandersProduct Version => 3.4
2018-04-25 18:59Brad ConroyNote Added: 0001772