Move ZoneSetPersistedDataOLD to JsonHelpers (#1405)

This commit is contained in:
stefansjfw 2020-03-07 10:59:00 +01:00 committed by GitHub
parent 141b63587b
commit 1cf8634152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 13 deletions

View File

@ -13,6 +13,19 @@
namespace namespace
{ {
// Needed for migration of applied zonesets from registry
struct ZoneSetPersistedDataOLD
{
static constexpr inline size_t MAX_ZONES = 40;
DWORD Version{ VERSION_PERSISTEDDATA };
WORD LayoutId{};
DWORD ZoneCount{};
JSONHelpers::ZoneSetLayoutType Layout{};
DWORD PaddingInner{};
DWORD PaddingOuter{};
RECT Zones[MAX_ZONES]{};
};
// From Settings.cs // From Settings.cs
constexpr int c_focusModelId = 0xFFFF; constexpr int c_focusModelId = 0xFFFF;
constexpr int c_rowsModelId = 0xFFFE; constexpr int c_rowsModelId = 0xFFFE;

View File

@ -30,19 +30,6 @@ struct ZoneSetPersistedData
RECT Zones[MAX_ZONES]{}; RECT Zones[MAX_ZONES]{};
}; };
struct ZoneSetPersistedDataOLD
{
static constexpr inline size_t MAX_ZONES = 40;
DWORD Version{ VERSION_PERSISTEDDATA };
WORD LayoutId{};
DWORD ZoneCount{};
JSONHelpers::ZoneSetLayoutType Layout{};
DWORD PaddingInner{};
DWORD PaddingOuter{};
RECT Zones[MAX_ZONES]{};
};
struct ZoneSetConfig struct ZoneSetConfig
{ {
ZoneSetConfig( ZoneSetConfig(