提交 f16f2c63 编写于 作者: X xucheng57

黄区代码修改合入

Signed-off-by: Nxucheng57 <xucheng57@huawei.com>
上级 8f9525d7
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#ifndef GRAPHIC_LITE_RENDER_BASE_H #ifndef GRAPHIC_LITE_RENDER_BASE_H
#define GRAPHIC_LITE_RENDER_BASE_H #define GRAPHIC_LITE_RENDER_BASE_H
#include <iostream>
#include "gfx_utils/diagram/common/common_basics.h" #include "gfx_utils/diagram/common/common_basics.h"
#include "render/render_buffer.h" #include "render/render_buffer.h"
...@@ -216,7 +215,9 @@ public: ...@@ -216,7 +215,9 @@ public:
void BlendHLine(int32_t x1, int32_t y, int32_t x2, const ColorType& color, uint8_t cover) void BlendHLine(int32_t x1, int32_t y, int32_t x2, const ColorType& color, uint8_t cover)
{ {
if (x1 > x2) { if (x1 > x2) {
std::swap(x1, x2); int32_t swapTemp = x1;
x1 = x2;
x2 = swapTemp;
} }
if (y > GetYMax() || y < GetYMin() || x1 > GetXMax() || x2 < GetXMin()) { if (y > GetYMax() || y < GetYMin() || x1 > GetXMax() || x2 < GetXMin()) {
return; return;
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include "ui_test_vector_font.h" #include "ui_test_vector_font.h"
#if ENABLE_VECTOR_FONT #if ENABLE_VECTOR_FONT
#include <iostream>
#include "common/screen.h" #include "common/screen.h"
#include "components/ui_label.h" #include "components/ui_label.h"
#if ENABLE_MULTI_FONT #if ENABLE_MULTI_FONT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册