| 533 | } |
| 534 | |
| 535 | void 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 |
no outgoing calls
no test coverage detected