Skip to content

Commit

Permalink
Move ZoneSetPersistedDataOLD to JsonHelpers (#1405)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansjfw committed Mar 7, 2020
1 parent 141b635 commit 1cf8634
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
13 changes: 13 additions & 0 deletions src/modules/fancyzones/lib/JsonHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@

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
constexpr int c_focusModelId = 0xFFFF;
constexpr int c_rowsModelId = 0xFFFE;
Expand Down
13 changes: 0 additions & 13 deletions src/modules/fancyzones/lib/ZoneSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,6 @@ struct ZoneSetPersistedData
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
{
ZoneSetConfig(
Expand Down

0 comments on commit 1cf8634

Please sign in to comment.