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

Function InvDrawSlotBack

Source/inv.cpp:114–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void InvDrawSlotBack(int X, int Y, int W, int H)
115{
116 BYTE *dst;
117
118 /// ASSERT: assert(gpBuffer);
119
120 dst = &gpBuffer[X + BUFFER_WIDTH * Y];
121
122 int wdt, hgt;
123 BYTE pix;
124
125 for (hgt = H; hgt; hgt--, dst -= BUFFER_WIDTH + W) {
126 for (wdt = W; wdt; wdt--) {
127 pix = *dst;
128 if (pix >= PAL16_BLUE) {
129 if (pix <= PAL16_BLUE + 15)
130 pix -= PAL16_BLUE - PAL16_BEIGE;
131 else if (pix >= PAL16_GRAY)
132 pix -= PAL16_GRAY - PAL16_BEIGE;
133 }
134 *dst++ = pix;
135 }
136 }
137}
138
139void DrawInv()
140{

Callers 2

DrawInvFunction · 0.85
DrawInvBeltFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected