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

check if screen uses rgb mode #30

Open
Natejoestev opened this issue Feb 23, 2024 · 1 comment
Open

check if screen uses rgb mode #30

Natejoestev opened this issue Feb 23, 2024 · 1 comment

Comments

@Natejoestev
Copy link

It would be nice to beable to have a check to see if the screen allows for RGB or B&W.

@pixix4
Copy link
Owner

pixix4 commented Feb 25, 2024

You can already do this with the framebuffer crate, that is used internally. With screen.buffer.var_screen_info.bits_per_pixel you get 1 for black and white and 16 or 32 for screens with color support. Does this work for your usecase?

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

2 participants