mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-13 07:05:12 +01:00
Fix warnings
This commit is contained in:
parent
5c2d5eaf33
commit
e4a4038720
@ -616,7 +616,7 @@ void C64Display::TranslateKey(SDLKey key, bool key_up, uint8 *key_matrix,
|
|||||||
{
|
{
|
||||||
char c = Gui::gui->kbd->keycodeToChar(c64_key | (shift_on ? 0x80 : 0) );
|
char c = Gui::gui->kbd->keycodeToChar(c64_key | (shift_on ? 0x80 : 0) );
|
||||||
|
|
||||||
if (this->text_message_idx >= sizeof(this->text_message) - 2 ||
|
if ((size_t)this->text_message_idx >= sizeof(this->text_message) - 2 ||
|
||||||
c == '\n')
|
c == '\n')
|
||||||
{
|
{
|
||||||
this->text_message[this->text_message_idx] = '\0';
|
this->text_message[this->text_message_idx] = '\0';
|
||||||
@ -865,7 +865,6 @@ uint8 C64::poll_joystick_hats(int port)
|
|||||||
for (i = 0; i < hats; i++) {
|
for (i = 0; i < hats; i++) {
|
||||||
|
|
||||||
Uint8 v = SDL_JoystickGetHat (js, i);
|
Uint8 v = SDL_JoystickGetHat (js, i);
|
||||||
int x = 0, y = 0;
|
|
||||||
|
|
||||||
/* FIXME! This is the wrong way for the Wii */
|
/* FIXME! This is the wrong way for the Wii */
|
||||||
if (v & SDL_HAT_UP)
|
if (v & SDL_HAT_UP)
|
||||||
@ -885,7 +884,7 @@ uint8 C64::poll_joystick_buttons(int port)
|
|||||||
{
|
{
|
||||||
SDL_Joystick *js = joy[port];
|
SDL_Joystick *js = joy[port];
|
||||||
uint8 out = 0xff;
|
uint8 out = 0xff;
|
||||||
unsigned int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < SDL_JoystickNumButtons (js); i++) {
|
for (i = 0; i < SDL_JoystickNumButtons (js); i++) {
|
||||||
bool old = this->joy_button_pressed[i];
|
bool old = this->joy_button_pressed[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user