DXGL r412 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r411‎ | r412 | r413 >
Date:01:08, 24 February 2014
Author:admin
Status:new
Tags:
Comment:
Create appcompat change notification window.
Modified paths:
  • /cfgmgr/cfgmgr.cpp (modified) (history)
  • /ddraw/ddraw.rc (modified) (history)
  • /ddraw/resource.h (modified) (history)

Diff [purge]

Index: cfgmgr/cfgmgr.cpp
@@ -18,6 +18,7 @@
1919 #include "stdafx.h"
2020 #include "crc32.h"
2121 #include "cfgmgr.h"
 22+#include "../ddraw/resource.h"
2223 #include <tchar.h>
2324 using namespace std;
2425 #ifdef _UNICODE
@@ -32,6 +33,11 @@
3334
3435 DXGLCFG defaultmask;
3536
 37+bool AddCompatFlag(LPTSTR flag)
 38+{
 39+
 40+}
 41+
3642 void GetDirFromPath(LPTSTR path)
3743 {
3844 int len = _tcslen(path);
Index: ddraw/ddraw.rc
@@ -30,6 +30,17 @@
3131 LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
3232 IDI_ICON1 ICON "..\\common\\dxgl.ico"
3333
 34+//
 35+// Dialog resources
 36+//
 37+LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
 38+IDD_COMPAT DIALOG 0, 0, 193, 19
 39+STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_VISIBLE | WS_POPUP
 40+EXSTYLE WS_EX_WINDOWEDGE
 41+FONT 8, "Ms Shell Dlg"
 42+{
 43+ LTEXT "Compatibility settings applied; now restarting your program.", IDC_STATIC, 5, 5, 183, 8, SS_LEFT
 44+}
3445
3546
3647 //
Index: ddraw/resource.h
@@ -3,3 +3,4 @@
44 #endif
55
66 #define IDI_ICON1 100
 7+#define IDD_COMPAT 101