ultralight-ux / Ultralight

Lightweight, high-performance HTML renderer for game and app developers.
https://ultralig.ht
4.69k stars 197 forks source link

Does it support Linux FrameBuffer? #487

Open likema opened 1 year ago

JHarding86 commented 6 months ago

I would also really like an answer to this question.

adamjs commented 6 months ago

Hello! The library can indeed write directly to a linux framebuffer (eg, "/dev/fb0").

The general method to accomplish this is by defining a custom Surface (in this case you would return the mmap'd fb0 pixels in your Surface::LockPixels() implementation).

More information and examples in this article: https://docs.ultralig.ht/docs/using-a-custom-surface

nduran78 commented 6 months ago

Thanks. I am wondering if there is a git repository example that does this to see how it is setup. Also, do you feel ULv1.4.0b is stable enough to use for trying this?

nduran78 commented 6 months ago

I am running the Sample 8 - Web Brower and I am trying to log into Google and Yahoo mail. Google says "Unable to sign in to your Google Account: Delete cookies" with an error message in the built in utility of "Unrecognized Content-Security-Policy directive 'required-trusted-types-for'". Yahoo just runs in circles at login. Both sites see and recognize my accounts, but neither actually login as expected. I have tried creating my own renderer and unique session with no success, but I do not think this is the issue since the default session seems to be tracking my accounts, even after relaunch, and I am seeing data in the storage tab of the utility. Any advice on how to get the browser sample working for logging in? Everything I have found online is pointing to "Integration with Content Security Policy" but I do not understand this facet and cannot find reference to it in the base/sample Ultralight code. Thanks for any help regarding this!