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

Function ddgr_surf_FlipVideo

dd_grwin32/ddgrWin32API.cpp:210–234  ·  view source on GitHub ↗

flips the buffers in a surface. really only useful for video screens */

Source from the content-addressed store, hash-verified

208/* flips the buffers in a surface. really only useful for video screens
209 */
210bool ddgr_surf_FlipVideo(ddgr_surface *sf) {
211 bool success;
212
213 // don't report error if there's no backbuffer.
214 if (!(sf->flags & SURFFLAG_BACKBUFFER))
215 return true;
216
217 switch (LIB_DATA(subsystem)) {
218 case DDGR_GDIX_SUBSYSTEM:
219 case DDGR_GDI_SUBSYSTEM:
220 success = ddgr_gdi_surf_FlipVideo(sf);
221 break;
222 case DDGR_DX_SUBSYSTEM:
223 success = ddgr_dx_surf_FlipVideo(sf);
224 break;
225 default:
226 Int3();
227 }
228
229 if (!success) {
230 ddgr_FatalError("Failed to flip surface <%s>", sf->name);
231 }
232
233 return success;
234}
235
236/* graphic primatives
237 */

Callers 1

flipMethod · 0.85

Calls 3

ddgr_gdi_surf_FlipVideoFunction · 0.85
ddgr_dx_surf_FlipVideoFunction · 0.85
ddgr_FatalErrorFunction · 0.85

Tested by

no test coverage detected