MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ddgr_surf_Blt

Function ddgr_surf_Blt

dd_grwin32/ddgrWin32API.cpp:252–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252bool ddgr_surf_Blt(ddgr_surface *dsf, int dx, int dy, ddgr_surface *ssf, int sx, int sy, int sw, int sh) {
253 bool success;
254
255 switch (LIB_DATA(subsystem)) {
256 case DDGR_GDIX_SUBSYSTEM:
257 case DDGR_GDI_SUBSYSTEM:
258 success = ddgr_gdi_surf_Blt(dsf, dx, dy, ssf, sx, sy, sw, sh);
259 break;
260 case DDGR_DX_SUBSYSTEM:
261 success = ddgr_dx_surf_Blt(dsf, dx, dy, ssf, sx, sy, sw, sh);
262 break;
263 default:
264 Int3();
265 }
266
267 if (!success) {
268 ddgr_FatalError("Failed to blt surface <%s> to <%s>", ssf->name, dsf->name);
269 }
270
271 return success;
272}
273
274// returns internal information about an ddgr_surface (only to low level libraries, on par with the ddgr
275// library).

Callers 1

unibltMethod · 0.85

Calls 3

ddgr_gdi_surf_BltFunction · 0.85
ddgr_dx_surf_BltFunction · 0.85
ddgr_FatalErrorFunction · 0.85

Tested by

no test coverage detected