Skip to content

Commit

Permalink
Remove declaration of pyfb_isopen function
Browse files Browse the repository at this point in the history
This function is removed because the framebuffer should be opened in a context that the application allready knows it is opened. It must be just like in OpenGL where the context is opened like in this case with open the framebuffer and closed. So each thread must know by itself if the framebuffer is opened or not.
  • Loading branch information
RossAdrian committed Jul 24, 2024
1 parent 7e7f0dd commit 0e7035a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions native/pyframebuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,6 @@ extern void pyfb_close(uint8_t fbnum);
*/
extern void pyfb_vinfo(uint8_t fbnum, struct pyfb_videomode_info* info_ptr);

/**
* Checks if the framebuffer number is opened.
*
* @param fbnum The framebuffer number to check
*
* @return If opened returns 0, else -1
*/
extern int pyfb_isopen(uint8_t fbnum);

/**
* Paints a single pixel to the framebuffer. This function is secure because before
* painting, it validates the arguments.
Expand Down

0 comments on commit 0e7035a

Please sign in to comment.