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

Function DrawCutscene

Source/interfac.cpp:35–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void DrawCutscene()
36{
37 DWORD i;
38
39 lock_buf(1);
40 CelDraw(PANEL_X, 480 + SCREEN_Y - 1, (BYTE *)sgpBackCel, 1, 640);
41
42 for (i = 0; i < sgdwProgress; i++) {
43 DrawProgress(
44 BarPos[progress_id][0] + i + PANEL_X,
45 BarPos[progress_id][1] + SCREEN_Y,
46 progress_id);
47 }
48
49 unlock_buf(1);
50 force_redraw = 255;
51 scrollrt_draw_game_screen(FALSE);
52}
53
54void DrawProgress(int screen_x, int screen_y, int progress_id)
55{

Callers 2

IncProgressFunction · 0.85
ShowProgressFunction · 0.85

Calls 5

lock_bufFunction · 0.85
CelDrawFunction · 0.85
DrawProgressFunction · 0.85
unlock_bufFunction · 0.85

Tested by

no test coverage detected