MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / CBriefEdit

Method CBriefEdit

editor/BriefEdit.cpp:53–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51int TCx, TCy;
52
53CBriefEdit::CBriefEdit(CWnd *pParent /*=NULL*/) : CDialog(CBriefEdit::IDD, pParent) {
54 //{{AFX_DATA_INIT(CBriefEdit)
55 m_fGlitch = 0.0f;
56 m_fStatic = 0.0f;
57 m_sTitle = _T("");
58 //}}AFX_DATA_INIT
59 layouts = NULL;
60 num_layouts = 0;
61 ParseLayoutScreenFile("BriefingLayouts.txt");
62 PBlayouts = layouts;
63 PBnum_layouts = &num_layouts;
64 layout_bmp = -1;
65 TCx = TCy = 0;
66
67 int bm_handle = bm_AllocLoadFileBitmap("TelCom.ogf", 0);
68 if (bm_handle > BAD_BITMAP_HANDLE) {
69
70 menutga_LoadHotSpotMap(bm_handle, HOTSPOT_DISPLAY, &hotspotmap, &windowmap);
71
72 TCx = windowmap.wm[MONITOR_MAIN].x;
73 TCy = windowmap.wm[MONITOR_MAIN].y;
74
75 FreeHotSpotMapInternals(&hotspotmap);
76 FreeViewports();
77 if (windowmap.wm)
78 mem_free(windowmap.wm);
79 bm_FreeBitmap(bm_handle);
80 }
81}
82
83void CBriefEdit::DoDataExchange(CDataExchange *pDX) {
84 CDialog::DoDataExchange(pDX);

Callers

nothing calls this directly

Calls 5

bm_AllocLoadFileBitmapFunction · 0.85
menutga_LoadHotSpotMapFunction · 0.85
FreeHotSpotMapInternalsFunction · 0.85
FreeViewportsFunction · 0.85
bm_FreeBitmapFunction · 0.85

Tested by

no test coverage detected