This commit is contained in:
Carlos Aragones
2020-09-16 10:01:12 +02:00
parent 5f9594cb23
commit a6e63243f4
6 changed files with 18 additions and 85 deletions

View File

@ -197,11 +197,6 @@ mfb_open_ex(const char *title, unsigned width, unsigned height, unsigned flags)
return (struct mfb_window *) window_data;
}
struct mfb_window *
mfb_open(const char *title, unsigned width, unsigned height) {
return mfb_open_ex(title, width, height, 0);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int translate_key(int scancode);
@ -322,18 +317,6 @@ processEvents(SWindowData *window_data) {
void destroy_window_data(SWindowData *window_data);
mfb_update_state
mfb_update(struct mfb_window *window, void *buffer) {
if (window == 0x0) {
return STATE_INVALID_WINDOW;
}
SWindowData *window_data = (SWindowData *) window;
mfb_update_ex(window, buffer, window_data->buffer_width, window_data->buffer_height);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
mfb_update_state
mfb_update_ex(struct mfb_window *window, void *buffer, unsigned width, unsigned height) {
if (window == 0x0) {