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

SDL GUI backend #1251

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

SDL GUI backend #1251

wants to merge 1 commit into from

Conversation

mmuman
Copy link
Collaborator

@mmuman mmuman commented Oct 13, 2022

The idea is to be able to run Conky on ancient OSes and hardware (thinking about MiNT (not the GNU/Linux distro, the Atari OS) or AmigaOS), in a regular window but with minimal coding required, and also to allow testing the GUI backend without X11. I used SDL 1.2 because SDL2 only runs on Windows, OSX and Linux, which limits the interest for old platforms.

For now it only draws text with a hardcoded font. It also still needs to be compiled with X11 due to some variables here and there.

@netlify
Copy link

netlify bot commented Oct 13, 2022

Deploy Preview for conkyweb canceled.

Name Link
🔨 Latest commit 22c31f0
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/64cd96f30ed3a900097d36a3

@github-actions github-actions bot added the sources PR modifies project sources label Oct 13, 2022
@mmuman mmuman force-pushed the gui-sdl branch 3 times, most recently from 8f1477e to cca610b Compare November 29, 2022 21:36
@mmuman
Copy link
Collaborator Author

mmuman commented Nov 29, 2022

I added some way to locate and load TTF files by the font name, it kinda works.
Screenshot_20221129_223721

@mmuman
Copy link
Collaborator Author

mmuman commented Jan 22, 2023

Just rebased, had to change some #ifdef info #if defined(BUILD_WAYLAND) || defined(BUILD_SDL) so maybe we'd need some BUILD_NONX11 define around to avoid these lists everywhere?

@brndnmtthws
Copy link
Owner

Just rebased, had to change some #ifdef info #if defined(BUILD_WAYLAND) || defined(BUILD_SDL) so maybe we'd need some BUILD_NONX11 define around to avoid these lists everywhere?

That could work, though it seems messy. There's also BUILD_GUI, but it sounds like that won't help here.

@mmuman
Copy link
Collaborator Author

mmuman commented Aug 4, 2023

The recent changes on color stuff just got rid of the #ifdef thing.

@mmuman
Copy link
Collaborator Author

mmuman commented Aug 5, 2023

And we have colors :-)

@Caellian
Copy link
Collaborator

Hi, I changed how registration of output displays works to avoid linker magic, you can check out how other backends are registered on main branch for reference.

Main differences are:

  • sdl-output.cc should be guarded by build flag in CMakeLists.txt
  • You need to provide a log message template fallback in display-output.cc for feature gated outputs

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

Successfully merging this pull request may close these issues.

None yet

3 participants