64bit compilation fix. See patch #3517.

This commit is contained in:
Guillaume Melquiond 2004-11-12 19:35:16 +00:00
parent 0ff774b6bc
commit 010d6ebfd4
2 changed files with 3 additions and 3 deletions

View file

@ -119,7 +119,7 @@ RESULT enter(display& disp, config& game_data, const config& terrain_data, dialo
//generate a unique id to show the map as
char buf[50];
sprintf(buf,"addr %d",(int)(SDL_Surface*)mini);
sprintf(buf,"addr %p", (SDL_Surface*)mini);
image::register_image(buf,mini);

View file

@ -262,8 +262,8 @@ void menu::handle_event(const SDL_Event& event)
x = event.button.x;
y = event.button.y;
} else {
x = (int)event.user.data1;
y = (int)event.user.data2;
x = (long)event.user.data1;
y = (long)event.user.data2;
}
const int item = hit(x,y);