MCPcopy Create free account
hub / github.com/diasurgical/devilution / DoBlitScreen

Function DoBlitScreen

Source/scrollrt.cpp:1152–1168  ·  view source on GitHub ↗

* @brief Update part of the screen from the back buffer * @param dwX Back buffer coordinate * @param dwY Back buffer coordinate * @param dwWdt Back buffer coordinate * @param dwHgt Back buffer coordinate */

Source from the content-addressed store, hash-verified

1150 * @param dwHgt Back buffer coordinate
1151 */
1152static void DoBlitScreen(DWORD dwX, DWORD dwY, DWORD dwWdt, DWORD dwHgt)
1153{
1154 SDL_Rect SrcRect = {
1155 dwX + SCREEN_X,
1156 dwY + SCREEN_Y,
1157 dwWdt,
1158 dwHgt,
1159 };
1160 SDL_Rect DstRect = {
1161 dwX,
1162 dwY,
1163 dwWdt,
1164 dwHgt,
1165 };
1166
1167 BltFast(&SrcRect, &DstRect);
1168}
1169
1170/**
1171 * @brief Check render pipline and blit indivudal screen parts

Callers 1

DrawMainFunction · 0.85

Calls 1

BltFastFunction · 0.85

Tested by

no test coverage detected