Skip to content

Commit

Permalink
Fix compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
lipk committed Jul 22, 2014
1 parent 082274c commit b484efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dialogs.cpp
Expand Up @@ -1218,9 +1218,9 @@ void unit_preview_pane::draw_contents()

GPU_UnsetClip(get_render_target());
#else
surface screen(video().getSurface());
const clip_rect_setter clipper(screen, &area);

surface screen = video().getSurface();
surface unit_image = det.image;
if (!left_)
unit_image = image::reverse_image(unit_image);
Expand Down
2 changes: 1 addition & 1 deletion src/display.cpp
Expand Up @@ -1543,7 +1543,7 @@ void display::draw_all_panels()
}
render_buttons();
#else
const surface& screen(screen_.getSurface());
surface& screen(screen_.getSurface());

/*
* The minimap is also a panel, force it to update its contents.
Expand Down

0 comments on commit b484efb

Please sign in to comment.