olikraus / ucglib

Arduino True Color Library for TFTs and OLEDs
https://github.com/olikraus/ucglib/wiki
Other
261 stars 76 forks source link

Update SDL to SDL2. #85

Closed basilfx closed 6 years ago

basilfx commented 6 years ago

I couldn't get SDL running properly under macOS High Sierra (works under Ubuntu), so I figured I could try to get SDL2 working. SDL1.2 is legacy nowadays. I have used this tutorial to get started.

Here is my attempt. Speed is similar to old version, although not fast.

schermafbeelding 2018-02-14 om 21 12 58

This would solve #84.

basilfx commented 6 years ago

I have updated this PR after I found out I can use the surface directly, instead of a texture. It's a bit faster, but much closer to the original SDL 1.2 implementation.

It's now very similar to https://github.com/olikraus/u8g2/pull/517.

schermafbeelding 2018-02-21 om 19 39 39

basilfx commented 6 years ago

@olikraus Could you take a look at this, I would like to integrate it here: https://github.com/RIOT-OS/RIOT/pull/8623

Thanks!

olikraus commented 6 years ago

hmmm somehow your screenshot shows a damaged version of the ucglib logo. Yes of course merging should be an issue, I will take a look this evening.

I should mention, that I do not maintain ucglib so much at the moment. Or maybe it is already stable ;-)