summaryrefslogtreecommitdiff
path: root/plugins/StartPosition
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
commitcddcd7483a7c472598af098e759e5d309024f606 (patch)
treeb0a227d6e087c41958cc84d27bc323353248aae5 /plugins/StartPosition
parent1039b2829a264280493ba0fa979214fe024dc70c (diff)
DWORD -> uint32_t
Diffstat (limited to 'plugins/StartPosition')
-rw-r--r--plugins/StartPosition/src/options.h16
-rw-r--r--plugins/StartPosition/src/startposition.cpp6
2 files changed, 11 insertions, 11 deletions
diff --git a/plugins/StartPosition/src/options.h b/plugins/StartPosition/src/options.h
index f903e37580..812834699c 100644
--- a/plugins/StartPosition/src/options.h
+++ b/plugins/StartPosition/src/options.h
@@ -37,10 +37,10 @@ struct ClistOptions
CMOption<uint8_t> isDocked;
CMOption<uint8_t> state;
- CMOption<DWORD> x;
- CMOption<DWORD> y;
- CMOption<DWORD> width;
- CMOption<DWORD> height;
+ CMOption<uint32_t> x;
+ CMOption<uint32_t> y;
+ CMOption<uint32_t> width;
+ CMOption<uint32_t> height;
ClistOptions() :
isDocked(CLIST_MODULE_NAME, "Docked", 0),
@@ -62,10 +62,10 @@ struct StartPositionOptions
CMOption<uint8_t> setClistStartState;
CMOption<uint8_t> clistState;
- CMOption<DWORD> pixelsFromTop;
- CMOption<DWORD> pixelsFromBottom;
- CMOption<DWORD> pixelsFromSide;
- CMOption<DWORD> clistWidth;
+ CMOption<uint32_t> pixelsFromTop;
+ CMOption<uint32_t> pixelsFromBottom;
+ CMOption<uint32_t> pixelsFromSide;
+ CMOption<uint32_t> clistWidth;
StartPositionOptions();
};
diff --git a/plugins/StartPosition/src/startposition.cpp b/plugins/StartPosition/src/startposition.cpp
index 086ceab000..7e2dce02af 100644
--- a/plugins/StartPosition/src/startposition.cpp
+++ b/plugins/StartPosition/src/startposition.cpp
@@ -17,15 +17,15 @@ void CMPlugin::positionClist()
clOptions.state = static_cast<uint8_t>(spOptions.clistState);
if (spOptions.setClistWidth && spOptions.clistWidth > 0)
- clOptions.width = static_cast<DWORD>(spOptions.clistWidth);
+ clOptions.width = static_cast<uint32_t>(spOptions.clistWidth);
else
- spOptions.clistWidth = static_cast<DWORD>(clOptions.width);
+ spOptions.clistWidth = static_cast<uint32_t>(clOptions.width);
if (spOptions.setTopPosition || spOptions.setBottomPosition || spOptions.setSidePosition)
clOptions.isDocked = false;
if (spOptions.setTopPosition)
- clOptions.y = static_cast<DWORD>(spOptions.pixelsFromTop);
+ clOptions.y = static_cast<uint32_t>(spOptions.pixelsFromTop);
RECT WorkArea;
SystemParametersInfo(SPI_GETWORKAREA, 0, &WorkArea, 0);