mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
Fix: DSurface lost (#109)
Switching screen mode (from or to full screen) with FA2 open and loaded with map, when you get back, the program haulted and killed immediately. This PR fix the device lost issue, and get the right surface .
This commit is contained in:
parent
102f919e96
commit
98e8b7c562
5 changed files with 266 additions and 226 deletions
|
@ -101,6 +101,8 @@ public:
|
|||
CIsoView();
|
||||
virtual ~CIsoView();
|
||||
|
||||
BOOL RecreateSurfaces();
|
||||
|
||||
// overwriteables
|
||||
//{{AFX_VIRTUAL(CIsoView)
|
||||
public:
|
||||
|
@ -119,7 +121,7 @@ protected:
|
|||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
std::tuple<DDSURFACEDESC2, LPDIRECTDRAWSURFACE4, bool> getDDDesc(bool recreated);
|
||||
|
||||
// generated message maps
|
||||
//{{AFX_MSG(CIsoView)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue