author | hash <hash> | 2002-10-24 16:24:00 (UTC) |
---|---|---|
committer | hash <hash> | 2002-10-24 16:24:00 (UTC) |
commit | f8875264ece878f5bb7e8e528200f6ba437138c5 (patch) (side-by-side diff) | |
tree | 343ef25aae76316e4931f15b63938388ff0d5dd8 /noncore/apps/opie-console/function_keyboard.cpp | |
parent | 07811d76c261ece00a45589a2eb9d2bb8971943e (diff) | |
download | opie-f8875264ece878f5bb7e8e528200f6ba437138c5.zip opie-f8875264ece878f5bb7e8e528200f6ba437138c5.tar.gz opie-f8875264ece878f5bb7e8e528200f6ba437138c5.tar.bz2 |
got rid of those warnings
Diffstat (limited to 'noncore/apps/opie-console/function_keyboard.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/function_keyboard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.cpp b/noncore/apps/opie-console/function_keyboard.cpp index fa11701..3da8d61 100644 --- a/noncore/apps/opie-console/function_keyboard.cpp +++ b/noncore/apps/opie-console/function_keyboard.cpp @@ -99,9 +99,9 @@ void FunctionKeyboard::paintEvent(QPaintEvent *e) { keys[handle].label ); else { - ushort centerX = c *keyWidth + (keyWidth - keys[handle].pix->width()) / 2; + ushort centerX = (ushort)(c *keyWidth) + (ushort)(keyWidth - keys[handle].pix->width()) / 2; ushort centerY = r * keyHeight + (keyHeight - keys[handle].pix->height()) / 2; p.drawPixmap(centerX, centerY, *keys[handle].pix); } } @@ -126,9 +126,9 @@ void FunctionKeyboard::paintKey(uint row, uint col) { keys[handle].label ); else { - ushort centerX = col *keyWidth + (keyWidth - keys[handle].pix->width()) / 2; + ushort centerX = (ushort)(col *keyWidth) + (ushort)(keyWidth - keys[handle].pix->width()) / 2; ushort centerY = row * keyHeight + (keyHeight - keys[handle].pix->height()) / 2; p.drawPixmap(centerX, centerY, *keys[handle].pix); } |