From c30a7caed13c9ca567f304cfc82c505460e3acba Mon Sep 17 00:00:00 2001 From: liuyuxiang-bear Date: Fri, 11 Mar 2022 17:46:58 +0800 Subject: [PATCH] Fix revise-issue. Signed-off-by: liuyuxiang-bear --- README_zh.md | 2 +- frameworks/ims/input_event_client_proxy.h | 4 ++-- interfaces/innerkits/lite_wm_type.h | 2 +- services/ims/input_event_distributer.h | 2 +- services/ims/input_event_hub.h | 2 +- services/wms/lite_win.cpp | 2 +- services/wms/lite_wms.cpp | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README_zh.md b/README_zh.md index 595bb6b..4f12044 100644 --- a/README_zh.md +++ b/README_zh.md @@ -10,7 +10,7 @@ ## 简介 -图形服务采用C/S架构,内部分为窗口管理(WMS: Window Manager Service)和输入事件管理(IMS: Input Manger Service)两个子服务。APP调用客户端接口完成窗口状态获取、事件处理等操作,服务端与硬件交互实现送显、输入事件分发等。 +图形服务采用C/S架构,内部分为窗口管理(WMS: Window Manager Service)和输入事件管理(IMS: Input Manager Service)两个子服务。APP调用客户端接口完成窗口状态获取、事件处理等操作,服务端与硬件交互实现送显、输入事件分发等。 - WMS:窗口管理服务对不同APP的窗口进行统一管理、合成。窗口与UI组件中的RootView呈一一对应的关系; - IMS:输入事件管理服务对接底层输入事件驱动框架,对输入事件进行监听和分发。 diff --git a/frameworks/ims/input_event_client_proxy.h b/frameworks/ims/input_event_client_proxy.h index 610280c..29fc3cb 100755 --- a/frameworks/ims/input_event_client_proxy.h +++ b/frameworks/ims/input_event_client_proxy.h @@ -13,8 +13,8 @@ * limitations under the License. */ -#ifndef GRAPHIC_LITE_IMS_LISTERNER_PROXY_H -#define GRAPHIC_LITE_IMS_LISTERNER_PROXY_H +#ifndef GRAPHIC_LITE_INPUT_EVENT_PROXY_H +#define GRAPHIC_LITE_INPUT_EVENT_PROXY_H #include "input_event_distributer.h" #include "gfx_utils/input_event_info.h" diff --git a/interfaces/innerkits/lite_wm_type.h b/interfaces/innerkits/lite_wm_type.h index 33bba79..41640d4 100755 --- a/interfaces/innerkits/lite_wm_type.h +++ b/interfaces/innerkits/lite_wm_type.h @@ -67,7 +67,7 @@ typedef enum { typedef enum { LiteWMS_EOK = 0, - LiteWMS_EUNKONW + LiteWMS_EUNKNOWN } LiteWMSErrorCode; struct CallBackPara { diff --git a/services/ims/input_event_distributer.h b/services/ims/input_event_distributer.h index 1bb6596..5b83133 100755 --- a/services/ims/input_event_distributer.h +++ b/services/ims/input_event_distributer.h @@ -32,7 +32,7 @@ public: * @brief Distribute input events. * * @param [in] events events waiting for distribution. - * @param [in] size totoal size of events. + * @param [in] size total size of events. * */ void Distribute(const RawEvent* events, int32_t size); diff --git a/services/ims/input_event_hub.h b/services/ims/input_event_hub.h index 784e6ec..76008e0 100644 --- a/services/ims/input_event_hub.h +++ b/services/ims/input_event_hub.h @@ -48,7 +48,7 @@ public: * * @param [in] callback callback of read callback. * - * @returns return -1: register callbacke failed; return 0: register success. + * @returns return -1: register callback failed; return 0: register success. */ int32_t RegisterReadCallback(ReadCallback callback) { diff --git a/services/wms/lite_win.cpp b/services/wms/lite_win.cpp index d8b842c..2164d27 100644 --- a/services/wms/lite_win.cpp +++ b/services/wms/lite_win.cpp @@ -196,7 +196,7 @@ void LiteWindow::FlushWithModeBlend(const Rect& srcRect, const LiteSurfaceData* PF_ARGB1555* dst = reinterpret_cast(tmpDst); if (dst->alpha == 0) { if (alpha) { - // ARGB8888 to ARGB1555, R/G/B shoud right shift 3 bits + // ARGB8888 to ARGB1555, R/G/B should right shift 3 bits dst->red = (tmpSrc->red * alpha / OPA_OPAQUE) >> 3; dst->green = (tmpSrc->green * alpha / OPA_OPAQUE) >> 3; dst->blue = (tmpSrc->blue * alpha / OPA_OPAQUE) >> 3; diff --git a/services/wms/lite_wms.cpp b/services/wms/lite_wms.cpp index 83452dd..5dc6bef 100755 --- a/services/wms/lite_wms.cpp +++ b/services/wms/lite_wms.cpp @@ -201,7 +201,7 @@ void LiteWMS::Screenshot(IpcIo* req, IpcIo* reply) { Surface* surface = SurfaceImpl::GenericSurfaceByIpcIo(*req); bool ret = LiteWM::GetInstance()->OnScreenshot(surface); - IpcIoPushInt32(reply, ret ? LiteWMS_EOK : LiteWMS_EUNKONW); + IpcIoPushInt32(reply, ret ? LiteWMS_EOK : LiteWMS_EUNKNOWN); } void LiteWMS::ClientRegister(const void* origin, IpcIo* req, IpcIo* reply) -- Gitee