| 72 | } |
| 73 | |
| 74 | static void get_csbits(csbits_t csbits, WORD id, const UINT cy0) |
| 75 | { |
| 76 | const UINT bufferSize = bitmapWidthBytes*bitmapHeight; |
| 77 | BYTE* pBuffer = new BYTE [bufferSize]; |
| 78 | |
| 79 | GetFrame().GetBitmap(id, bufferSize, pBuffer); |
| 80 | |
| 81 | for (UINT cy=cy0, ch=0; cy<cy0+16; cy++) |
| 82 | { |
| 83 | for (UINT cx=0; cx<16; cx++) |
| 84 | { |
| 85 | get_csbits_xy(csbits, ch++, cx, cy, pBuffer); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | delete [] pBuffer; |
| 90 | } |
| 91 | |
| 92 | //------------------------------------- |
| 93 |
no test coverage detected