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:
Zero Fanker 2024-11-03 21:46:04 -05:00 committed by GitHub
parent 102f919e96
commit 98e8b7c562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 266 additions and 226 deletions

View file

@ -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)