MCPcopy Create free account
hub / github.com/EasyRPG/Player / UpdateDisplay

Method UpdateDisplay

src/platform/sdl/sdl_ui.cpp:425–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425void SdlUi::UpdateDisplay() {
426 if (SDL_MUSTLOCK(sdl_surface)) SDL_LockSurface(sdl_surface);
427
428 if (zoom_available && current_display_mode.zoom == 2) {
429 sdl_surface_bmp->Blit2x(sdl_surface_bmp->GetRect(), *main_surface, main_surface->GetRect());
430 } else {
431 sdl_surface_bmp->BlitFast(0, 0, *main_surface, main_surface->GetRect(), Opacity::Opaque());
432 }
433
434 if (SDL_MUSTLOCK(sdl_surface)) SDL_UnlockSurface(sdl_surface);
435
436 SDL_UpdateRect(sdl_surface, 0, 0, 0, 0);
437}
438
439void SdlUi::SetTitle(const std::string &title) {
440 SDL_WM_SetCaption(title.c_str(), NULL);

Callers

nothing calls this directly

Calls 3

Blit2xMethod · 0.80
GetRectMethod · 0.80
BlitFastMethod · 0.80

Tested by

no test coverage detected