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

@ -53,12 +53,6 @@ create_window_data(unsigned width, unsigned height) {
return window_data;
}
//-------------------------------------
struct mfb_window *
mfb_open(const char *title, unsigned width, unsigned height) {
return mfb_open_ex(title, width, height, 0);
}
//-------------------------------------
struct mfb_window *
mfb_open_ex(const char *title, unsigned width, unsigned height, unsigned flags) {
@ -122,17 +116,6 @@ 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;
return 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) {