MCPcopy Create free account
hub / github.com/TASEmulators/fceux / KillMemView

Function KillMemView

src/drivers/win/memview.cpp:1174–1196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172}
1173
1174void KillMemView()
1175{
1176 if (hMemView)
1177 {
1178 ReleaseDC(hMemView, HDataDC);
1179 DestroyWindow(hMemView);
1180 UnregisterClass("MEMVIEW", fceu_hInstance);
1181 hMemView = NULL;
1182 hMemFind = NULL;
1183 free(CurTextColorList);
1184 free(DimTextColorList);
1185 free(CurBGColorList);
1186 free(DimBGColorList);
1187 if (EditingMode == MODE_NES_MEMORY)
1188 ReleaseCheatMap();
1189 for (int i = 0; i < sizeof(colormenu) / sizeof(colormenu[0]); ++i)
1190 for (int j = 0; j < colormenu[i].size; ++j)
1191 {
1192 DeleteObject(colormenu[i].items[j].bitmap);
1193 colormenu[i].items[j].bitmap = NULL;
1194 }
1195 }
1196}
1197
1198int GetMaxSize(int EditingMode)
1199{

Callers 3

CloseGameFunction · 0.85
MemViewCallBFunction · 0.85
DoFCEUExitFunction · 0.85

Calls 1

ReleaseCheatMapFunction · 0.85

Tested by

no test coverage detected