mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-01 09:59:06 +08:00
Move ZoneSetPersistedDataOLD to JsonHelpers (#1405)
This commit is contained in:
parent
141b63587b
commit
1cf8634152
@ -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;
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user