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

remove BAGL-gating on screen syscalls declaration #400

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/os_screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "bolos_target.h"
#include "decorators.h"

#ifdef HAVE_BAGL
#ifdef HAVE_SE_SCREEN
//SYSCALL void screen_write_frame(unsigned char* framebuffer PLENGTH(BAGL_WIDTH*BAGL_HEIGHT/8));
/**
Expand All @@ -19,10 +18,13 @@ SYSCALL void screen_clear(void);
*/
SYSCALL void screen_update(void);

#ifdef HAVE_BRIGHTNESS_SYSCALL
/**
* Set screen brightness
*/
SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void screen_set_brightness(unsigned int percent);
#endif // HAVE_BRIGHTNESS_SYSCALL

/**
* Require a specific zone not to be cleared/drawn by any graphic HAL to implement screen overlay
*/
Expand All @@ -36,4 +38,3 @@ SYSCALL void bagl_hal_draw_bitmap_within_rect(int x, int y, unsigned int width,
*/
SYSCALL void bagl_hal_draw_rect(unsigned int color, int x, int y, unsigned int width, unsigned int height);
#endif // HAVE_SE_SCREEN
#endif // HAVE_BAGL