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

Function DrawPanelBox

Source/control.cpp:535–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535void DrawPanelBox(int x, int y, int w, int h, int sx, int sy)
536{
537 int nSrcOff, nDstOff;
538
539 /// ASSERT: assert(gpBuffer);
540
541 nSrcOff = x + PANEL_WIDTH * y;
542 nDstOff = sx + BUFFER_WIDTH * sy;
543
544 int hgt;
545 BYTE *src, *dst;
546
547 src = &pBtmBuff[nSrcOff];
548 dst = &gpBuffer[nDstOff];
549
550 for (hgt = h; hgt; hgt--, src += PANEL_WIDTH, dst += BUFFER_WIDTH) {
551 memcpy(dst, src, w);
552 }
553}
554
555/**
556 * Draws a section of the empty flask cel on top of the panel to create the illusion

Callers 7

UpdateLifeFlaskFunction · 0.85
UpdateManaFlaskFunction · 0.85
DrawCtrlPanFunction · 0.85
DrawCtrlBtnsFunction · 0.85
DrawInfoBoxFunction · 0.85
DrawTalkPanFunction · 0.85
DrawInvBeltFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected