mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2025-10-15 18:55:09 +08:00
fix STM32 running error - printf is root cause
refactor c_surface_mcu
This commit is contained in:
@@ -42,8 +42,7 @@ public:
|
||||
protected:
|
||||
virtual void fill_rect_on_fb(int x0, int y0, int x1, int y1, unsigned int rgb);
|
||||
virtual void set_pixel(int x, int y, unsigned int rgb);
|
||||
|
||||
void set_surface(void* wnd_root, Z_ORDER_LEVEL max_z_order);
|
||||
virtual void set_surface(void* wnd_root, Z_ORDER_LEVEL max_z_order);
|
||||
c_surface(c_display* display, unsigned int width, unsigned int height, unsigned int color_bytes);
|
||||
int m_width; //in pixels
|
||||
int m_height; //in pixels
|
||||
@@ -85,6 +84,7 @@ class c_surface_mcu : public c_surface {
|
||||
virtual unsigned int get_pixel(int x, int y, unsigned int z_order);
|
||||
protected:
|
||||
virtual void set_pixel(int x, int y, unsigned int rgb);
|
||||
virtual void set_surface(void* wnd_root, Z_ORDER_LEVEL max_z_order);
|
||||
private:
|
||||
struct EXTERNAL_GFX_OP* m_gfx_op;
|
||||
};
|
||||
|
@@ -15,10 +15,7 @@ void _assert(const char* file, int line)
|
||||
{
|
||||
do_assert(file, line);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("assert@ file:%s, line:%d\n", file, line);
|
||||
}
|
||||
while(1);
|
||||
}
|
||||
|
||||
void log_out(const char* log)
|
||||
@@ -27,11 +24,6 @@ void log_out(const char* log)
|
||||
{
|
||||
do_log_out(log);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf(log);
|
||||
fflush(stdout);
|
||||
}
|
||||
}
|
||||
|
||||
long get_time_in_second()
|
||||
|
@@ -614,3 +614,9 @@ void c_surface_mcu::set_pixel(int x, int y, unsigned int rgb)
|
||||
{//Not support
|
||||
ASSERT(FALSE);
|
||||
}
|
||||
|
||||
void c_surface_mcu::set_surface(void* wnd_root, Z_ORDER_LEVEL max_z_order)
|
||||
{
|
||||
m_usr = wnd_root;
|
||||
m_max_zorder = max_z_order;
|
||||
}
|
Reference in New Issue
Block a user