From 2b01f8a87488ef3358dcb5903cb145e8bf5ca042 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Sun, 10 Aug 2014 15:59:22 +0100 Subject: [PATCH] Function setWindowTitle() now returns void. --- examples/common/entry/entry.h | 2 +- examples/common/entry/entry_android.cpp | 2 +- examples/common/entry/entry_asmjs.cpp | 2 +- examples/common/entry/entry_ios.mm | 2 +- examples/common/entry/entry_linux.cpp | 2 +- examples/common/entry/entry_nacl.cpp | 2 +- examples/common/entry/entry_osx.mm | 2 +- examples/common/entry/entry_qnx.cpp | 2 +- examples/common/entry/entry_sdl.cpp | 4 ++-- examples/common/entry/entry_windows.cpp | 8 ++++---- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/common/entry/entry.h b/examples/common/entry/entry.h index 9247a9b7..02507f38 100644 --- a/examples/common/entry/entry.h +++ b/examples/common/entry/entry.h @@ -161,7 +161,7 @@ namespace entry bx::FileWriterI* getFileWriter(); void setWindowSize(uint32_t _width, uint32_t _height); - bool setWindowTitle(const char* _title); + void setWindowTitle(const char* _title); void toggleWindowFrame(); void setMouseLock(bool _lock); diff --git a/examples/common/entry/entry_android.cpp b/examples/common/entry/entry_android.cpp index 16847e4a..46618550 100644 --- a/examples/common/entry/entry_android.cpp +++ b/examples/common/entry/entry_android.cpp @@ -207,7 +207,7 @@ namespace entry BX_UNUSED(_width, _height); } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { BX_UNUSED(_title); } diff --git a/examples/common/entry/entry_asmjs.cpp b/examples/common/entry/entry_asmjs.cpp index 1e0c32df..9099ae33 100644 --- a/examples/common/entry/entry_asmjs.cpp +++ b/examples/common/entry/entry_asmjs.cpp @@ -24,7 +24,7 @@ namespace entry { } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { BX_UNUSED(_title); } diff --git a/examples/common/entry/entry_ios.mm b/examples/common/entry/entry_ios.mm index ebca9267..f61308e0 100644 --- a/examples/common/entry/entry_ios.mm +++ b/examples/common/entry/entry_ios.mm @@ -86,7 +86,7 @@ namespace entry BX_UNUSED(_width, _height); } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { BX_UNUSED(_title); } diff --git a/examples/common/entry/entry_linux.cpp b/examples/common/entry/entry_linux.cpp index c17cb45f..9084021f 100644 --- a/examples/common/entry/entry_linux.cpp +++ b/examples/common/entry/entry_linux.cpp @@ -328,7 +328,7 @@ namespace entry XSendEvent(s_ctx.m_display, s_ctx.m_window, false, ResizeRedirectMask, (XEvent*)&ev); } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { BX_UNUSED(_title); } diff --git a/examples/common/entry/entry_nacl.cpp b/examples/common/entry/entry_nacl.cpp index d06b3f5e..843c9d72 100644 --- a/examples/common/entry/entry_nacl.cpp +++ b/examples/common/entry/entry_nacl.cpp @@ -61,7 +61,7 @@ namespace entry BX_UNUSED(_width, _height); } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { BX_UNUSED(_title); } diff --git a/examples/common/entry/entry_osx.mm b/examples/common/entry/entry_osx.mm index 53cf0a31..cef8064d 100644 --- a/examples/common/entry/entry_osx.mm +++ b/examples/common/entry/entry_osx.mm @@ -281,7 +281,7 @@ namespace entry BX_UNUSED(_width, _height); } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { BX_UNUSED(_title); } diff --git a/examples/common/entry/entry_qnx.cpp b/examples/common/entry/entry_qnx.cpp index 1cdd0e22..ff7e068f 100644 --- a/examples/common/entry/entry_qnx.cpp +++ b/examples/common/entry/entry_qnx.cpp @@ -25,7 +25,7 @@ namespace entry { } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { BX_UNUSED(_title); } diff --git a/examples/common/entry/entry_sdl.cpp b/examples/common/entry/entry_sdl.cpp index e9ad6fee..f4de7324 100644 --- a/examples/common/entry/entry_sdl.cpp +++ b/examples/common/entry/entry_sdl.cpp @@ -304,7 +304,7 @@ namespace entry } } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { SDL_WM_SetCaption(_title, NULL); } @@ -347,7 +347,7 @@ namespace entry SDL_PushEvent(&event); } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { s_ctx.setWindowTitle(_title); } diff --git a/examples/common/entry/entry_windows.cpp b/examples/common/entry/entry_windows.cpp index 5aa50f47..204f5e58 100644 --- a/examples/common/entry/entry_windows.cpp +++ b/examples/common/entry/entry_windows.cpp @@ -586,9 +586,9 @@ namespace entry } } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { - return (1 == SetWindowText(m_hwnd, _title)); + SetWindowText(m_hwnd, _title); } static LRESULT CALLBACK wndProc(HWND _hwnd, UINT _id, WPARAM _wparam, LPARAM _lparam); @@ -639,9 +639,9 @@ namespace entry PostMessage(s_ctx.m_hwnd, WM_USER_SET_WINDOW_SIZE, 0, (_height<<16) | (_width&0xffff) ); } - bool setWindowTitle(const char* _title) + void setWindowTitle(const char* _title) { - return s_ctx.setWindowTitle(_title); + s_ctx.setWindowTitle(_title); } void toggleWindowFrame()