void SelectSpell::Render(SDL_Surface *screen) {
parent->Render(screen);
- const Frame &frame(battle->GetSelectFrame());
- Point<int> position(frame.BorderWidth(), frame.BorderHeight());
+ const Frame *frame(battle->Res().selectFrame);
+ Point<int> position(frame->BorderWidth(), frame->BorderHeight());
Vector<int> offset(battle->CalculateScreenOffset(screen));
- int width(battle->BackgroundWidth() - 2 * frame.BorderWidth());
+ int width(battle->BackgroundWidth() - 2 * frame->BorderWidth());
// TODO: replace with font height
- int height(frame.BorderHeight() * 13);
- frame.Draw(screen, position + offset, width, height);
+ int height(frame->BorderHeight() * 13);
+ frame->Draw(screen, position + offset, width, height);
}
}