Solve issue #35
This commit is contained in:
@@ -30,8 +30,8 @@ std::string get_socketpath();
|
|||||||
* Primitive of rectangle
|
* Primitive of rectangle
|
||||||
*/
|
*/
|
||||||
struct rect_t {
|
struct rect_t {
|
||||||
uint32_t x; ///< Position on X axis
|
int32_t x; ///< Position on X axis
|
||||||
uint32_t y; ///< Position on Y axis
|
int32_t y; ///< Position on Y axis
|
||||||
uint32_t width; ///< Width of rectangle
|
uint32_t width; ///< Width of rectangle
|
||||||
uint32_t height; ///< Height of rectangle
|
uint32_t height; ///< Height of rectangle
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ std::vector<std::ostream*> g_logging_err_outs = {
|
|||||||
|
|
||||||
inline rect_t parse_rect_from_json(const Json::Value& value) {
|
inline rect_t parse_rect_from_json(const Json::Value& value) {
|
||||||
return {
|
return {
|
||||||
.x = value["x"].asUInt(),
|
.x = value["x"].asInt(),
|
||||||
.y = value["y"].asUInt(),
|
.y = value["y"].asInt(),
|
||||||
.width = value["width"].asUInt(),
|
.width = value["width"].asUInt(),
|
||||||
.height = value["height"].asUInt(),
|
.height = value["height"].asUInt(),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user