From 7be1fe89548dd90dbf52bd57613c97644f6f502a Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 23 Feb 2003 16:52:17 +0000 Subject: fixed minor type issue --- src/FbTk/Button.cc | 4 ++-- src/FbTk/FbWindow.cc | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc index 4a9063f..acf344b 100644 --- a/src/FbTk/Button.cc +++ b/src/FbTk/Button.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Button.cc,v 1.4 2003/01/10 02:16:29 fluxgen Exp $ +// $Id: Button.cc,v 1.5 2003/02/23 16:52:17 fluxgen Exp $ #include "Button.hh" @@ -42,7 +42,7 @@ Button::Button(int screen_num, int x, int y, } Button::Button(const FbWindow &parent, int x, int y, - size_t width, size_t height): + unsigned int width, unsigned int height): m_win(parent, x, y, width, height, ExposureMask | ButtonPressMask | ButtonReleaseMask), m_foreground_pm(0), diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index eb91c42..5c0b2d2 100644 --- a/src/FbTk/FbWindow.cc +++ b/src/FbTk/FbWindow.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.cc,v 1.6 2003/02/03 13:39:57 fluxgen Exp $ +// $Id: FbWindow.cc,v 1.7 2003/02/23 16:52:16 fluxgen Exp $ #include "FbWindow.hh" @@ -157,9 +157,10 @@ void FbWindow::updateGeometry() { return; Window root; - size_t border_width, depth; + unsigned int border_width, depth; XGetGeometry(s_display, m_window, &root, &m_x, &m_y, - &m_width, &m_height, &border_width, &depth); + (unsigned int *)&m_width, (unsigned int *)&m_height, + &border_width, &depth); } void FbWindow::create(Window parent, int x, int y, -- cgit v0.11.2