MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / get_csbits

Function get_csbits

source/NTSC_CharSet.cpp:74–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static 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

Callers 1

make_csbitsFunction · 0.85

Calls 2

get_csbits_xyFunction · 0.85
GetBitmapMethod · 0.80

Tested by

no test coverage detected