Skip to content

Commit

Permalink
Log warnings instead of info for method unimplemented warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dapetcu21 committed Oct 22, 2018
1 parent d2e2554 commit b2a7836
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion defos/src/defos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ static int on_mouse_enter(lua_State *L)
static int on_click(lua_State *L)
{
#ifndef DM_PLATFORM_HTML5
dmLogInfo("Event 'on_click' exists only on HTML5");
dmLogWarning("Event 'on_click' exists only in HTML5");
#endif
set_event_handler(L, 1, DEFOS_EVENT_CLICK);
return 0;
Expand Down
18 changes: 9 additions & 9 deletions defos/src/defos_html5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ void defos_event_handler_was_set(DefosEvent event) {
}

void defos_disable_maximize_button() {
dmLogInfo("Method 'disable_maximize_button' is not supported in html5");
dmLogWarning("Method 'disable_maximize_button' is not supported in HTML5");
}

void defos_disable_minimize_button() {
dmLogInfo("Method 'disable_minimize_button' is not supported in html5");
dmLogWarning("Method 'disable_minimize_button' is not supported in HTML5");
}

void defos_disable_window_resize() {
dmLogInfo("Method 'disable_window_resize' is not supported in html5");
dmLogWarning("Method 'disable_window_resize' is not supported in HTML5");
}

void defos_minimize() {
dmLogInfo("Method 'minimize' is not supported in html5");
dmLogWarning("Method 'minimize' is not supported in HTML5");
}

void defos_toggle_fullscreen() {
Expand Down Expand Up @@ -154,7 +154,7 @@ bool defos_is_maximized() {
}

void defos_toggle_always_on_top() {
dmLogInfo("Method 'toggle_always_on_top' is not supported in html5");
dmLogWarning("Method 'toggle_always_on_top' is not supported in HTML5");
}

bool defos_is_always_on_top() {
Expand Down Expand Up @@ -236,7 +236,7 @@ bool defos_is_console_visible() {
}

void defos_set_console_visible(bool visible) {
dmLogInfo("Method 'defos_set_console_visible' is not supported in html5, it is meant for Windows builds only");
dmLogWarning("Method 'set_console_visible' is only supported on Windows");
}

void defos_set_cursor_visible(bool visible) {
Expand Down Expand Up @@ -269,15 +269,15 @@ WinPoint defos_get_cursor_pos_view() {
}

void defos_set_cursor_pos(float x, float y) {
dmLogInfo("Method 'defos_set_cursor_pos' is not supported in html5");
dmLogWarning("Method 'defos_set_cursor_pos' is not supported in HTML5");
}

void defos_set_cursor_pos_view(float x, float y) {
dmLogInfo("Method 'defos_set_cursor_pos_view' is not supported in html5");
dmLogWarning("Method 'defos_set_cursor_pos_view' is not supported in HTML5");
}

void defos_set_cursor_clipped(bool clipped) {
dmLogInfo("Method 'defos_set_cursor_clipped' is not supported in html5");
dmLogWarning("Method 'defos_set_cursor_clipped' is not supported in HTML5");
}

bool defos_is_cursor_clipped() {
Expand Down
8 changes: 4 additions & 4 deletions defos/src/defos_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ void defos_minimize()

void defos_set_console_visible(bool visible)
{
dmLogInfo("Method 'defos_set_console_visible' is not supported in Linux");
dmLogWarning("Method 'set_console_visible' is only supported on Windows");
}

bool defos_is_console_visible()
Expand Down Expand Up @@ -471,7 +471,7 @@ void defos_set_cursor_pos_view(float x, float y)

void defos_set_cursor_clipped(bool clipped)
{
dmLogInfo("Method 'defos_set_cursor_clipped' is not supported in Linux");
dmLogWarning("Method 'set_cursor_clipped' is not supported on Linux");
}

bool defos_is_cursor_clipped()
Expand All @@ -481,7 +481,7 @@ bool defos_is_cursor_clipped()

void defos_set_cursor_locked(bool locked)
{
dmLogInfo("Method 'defos_set_cursor_locked' is not supported in Linux");
dmLogWarning("Method 'set_cursor_locked' is not supported on Linux");
}

bool defos_is_cursor_locked()
Expand Down Expand Up @@ -768,7 +768,7 @@ DisplayID defos_get_current_display()

void defos_set_window_icon(const char *icon_path)
{
dmLogInfo("Method 'defos_set_window_icon' is not supported on Linux");
dmLogWarning("Method 'set_window_icon' is not supported on Linux");
}

static char* copy_string(const char * s)
Expand Down
2 changes: 1 addition & 1 deletion defos/src/defos_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ WinRect defos_get_view_size() {
}

void defos_set_console_visible(bool visible) {
dmLogInfo("Method 'defos_set_console_visible' is not supported in macOS");
dmLogWarning("Method 'set_console_visible' is only supported on Windows");
}

bool defos_is_console_visible() {
Expand Down

0 comments on commit b2a7836

Please sign in to comment.