Skip to content

Commit

Permalink
Architecture: Add ARM support
Browse files Browse the repository at this point in the history
Introduces ARM architecture support to the OBS-Websocket. This includes modifications that are guarded with ARM-specific macros to ensure compatibility without affecting the existing codebase.
  • Loading branch information
thirumalai-qcom committed Jul 16, 2024
1 parent f8bc7c4 commit 510822c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/requesthandler/RequestHandler_SceneItems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,13 @@ RequestResult RequestHandler::SetSceneItemTransform(const Request &request)
}

if (r.Contains("alignment")) {
#if defined(_M_ARM64)
if (!r.ValidateOptionalNumber("alignment", statusCode, comment, 0, (std::numeric_limits<uint32_t>::max)()))
return RequestResult::Error(statusCode, comment);
#else
if (!r.ValidateOptionalNumber("alignment", statusCode, comment, 0, std::numeric_limits<uint32_t>::max()))
return RequestResult::Error(statusCode, comment);
#endif
sceneItemTransform.alignment = r.RequestData["alignment"];
transformChanged = true;
}
Expand All @@ -458,8 +463,13 @@ RequestResult RequestHandler::SetSceneItemTransform(const Request &request)
}

if (r.Contains("boundsAlignment")) {
#if defined(_M_ARM64)
if (!r.ValidateOptionalNumber("boundsAlignment", statusCode, comment, 0, (std::numeric_limits<uint32_t>::max)()))
return RequestResult::Error(statusCode, comment);
#else
if (!r.ValidateOptionalNumber("boundsAlignment", statusCode, comment, 0, std::numeric_limits<uint32_t>::max()))
return RequestResult::Error(statusCode, comment);
#endif
sceneItemTransform.bounds_alignment = r.RequestData["boundsAlignment"];
transformChanged = true;
}
Expand Down

0 comments on commit 510822c

Please sign in to comment.