mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 07:43:27 +00:00
Make Wesnoth more compatible with C++0x (g++-4.5).
This commit is contained in:
parent
bc29504324
commit
6557affdd4
@ -261,7 +261,10 @@ void draw(surface screen)
|
|||||||
cursor_y = new_cursor_y;
|
cursor_y = new_cursor_y;
|
||||||
|
|
||||||
// Save the screen area where the cursor is being drawn onto the back buffer
|
// Save the screen area where the cursor is being drawn onto the back buffer
|
||||||
SDL_Rect area = {cursor_x - shift_x[current_cursor], cursor_y - shift_y[current_cursor],surf->w,surf->h};
|
SDL_Rect area = create_rect(cursor_x - shift_x[current_cursor]
|
||||||
|
, cursor_y - shift_y[current_cursor]
|
||||||
|
, surf->w
|
||||||
|
, surf->h);
|
||||||
SDL_BlitSurface(screen,&area,cursor_buf,NULL);
|
SDL_BlitSurface(screen,&area,cursor_buf,NULL);
|
||||||
|
|
||||||
// Blit the surface
|
// Blit the surface
|
||||||
@ -282,7 +285,10 @@ void undraw(surface screen)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_Rect area = {cursor_x - shift_x[current_cursor], cursor_y - shift_y[current_cursor],cursor_buf->w,cursor_buf->h};
|
SDL_Rect area = create_rect(cursor_x - shift_x[current_cursor]
|
||||||
|
, cursor_y - shift_y[current_cursor]
|
||||||
|
, cursor_buf->w
|
||||||
|
, cursor_buf->h);
|
||||||
SDL_BlitSurface(cursor_buf,NULL,screen,&area);
|
SDL_BlitSurface(cursor_buf,NULL,screen,&area);
|
||||||
update_rect(area);
|
update_rect(area);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user