Function setWindowTitle() now returns void.

This commit is contained in:
Dario Manesku 2014-08-10 15:59:22 +01:00
parent 1c16d97c27
commit 2b01f8a874
10 changed files with 14 additions and 14 deletions

View file

@ -161,7 +161,7 @@ namespace entry
bx::FileWriterI* getFileWriter(); bx::FileWriterI* getFileWriter();
void setWindowSize(uint32_t _width, uint32_t _height); void setWindowSize(uint32_t _width, uint32_t _height);
bool setWindowTitle(const char* _title); void setWindowTitle(const char* _title);
void toggleWindowFrame(); void toggleWindowFrame();
void setMouseLock(bool _lock); void setMouseLock(bool _lock);

View file

@ -207,7 +207,7 @@ namespace entry
BX_UNUSED(_width, _height); BX_UNUSED(_width, _height);
} }
bool setWindowTitle(const char* _title) void setWindowTitle(const char* _title)
{ {
BX_UNUSED(_title); BX_UNUSED(_title);
} }

View file

@ -24,7 +24,7 @@ namespace entry
{ {
} }
bool setWindowTitle(const char* _title) void setWindowTitle(const char* _title)
{ {
BX_UNUSED(_title); BX_UNUSED(_title);
} }

View file

@ -86,7 +86,7 @@ namespace entry
BX_UNUSED(_width, _height); BX_UNUSED(_width, _height);
} }
bool setWindowTitle(const char* _title) void setWindowTitle(const char* _title)
{ {
BX_UNUSED(_title); BX_UNUSED(_title);
} }

View file

@ -328,7 +328,7 @@ namespace entry
XSendEvent(s_ctx.m_display, s_ctx.m_window, false, ResizeRedirectMask, (XEvent*)&ev); 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); BX_UNUSED(_title);
} }

View file

@ -61,7 +61,7 @@ namespace entry
BX_UNUSED(_width, _height); BX_UNUSED(_width, _height);
} }
bool setWindowTitle(const char* _title) void setWindowTitle(const char* _title)
{ {
BX_UNUSED(_title); BX_UNUSED(_title);
} }

View file

@ -281,7 +281,7 @@ namespace entry
BX_UNUSED(_width, _height); BX_UNUSED(_width, _height);
} }
bool setWindowTitle(const char* _title) void setWindowTitle(const char* _title)
{ {
BX_UNUSED(_title); BX_UNUSED(_title);
} }

View file

@ -25,7 +25,7 @@ namespace entry
{ {
} }
bool setWindowTitle(const char* _title) void setWindowTitle(const char* _title)
{ {
BX_UNUSED(_title); BX_UNUSED(_title);
} }

View file

@ -304,7 +304,7 @@ namespace entry
} }
} }
bool setWindowTitle(const char* _title) void setWindowTitle(const char* _title)
{ {
SDL_WM_SetCaption(_title, NULL); SDL_WM_SetCaption(_title, NULL);
} }
@ -347,7 +347,7 @@ namespace entry
SDL_PushEvent(&event); SDL_PushEvent(&event);
} }
bool setWindowTitle(const char* _title) void setWindowTitle(const char* _title)
{ {
s_ctx.setWindowTitle(_title); s_ctx.setWindowTitle(_title);
} }

View file

@ -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); 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) ); 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() void toggleWindowFrame()