mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2026-01-02 04:17:19 +08:00
fix some warning
This commit is contained in:
@@ -381,9 +381,6 @@ int c_surface::set_frame_layer_visible_rect(c_rect& rect, unsigned int z_order)
|
|||||||
c_rect old_rect = m_frame_layers[z_order].visible_rect;
|
c_rect old_rect = m_frame_layers[z_order].visible_rect;
|
||||||
//Recover the lower layer
|
//Recover the lower layer
|
||||||
int src_zorder = (Z_ORDER_LEVEL)(z_order - 1);
|
int src_zorder = (Z_ORDER_LEVEL)(z_order - 1);
|
||||||
int display_width = m_display->get_width();
|
|
||||||
int display_height = m_display->get_height();
|
|
||||||
|
|
||||||
for (int y = old_rect.m_top; y <= old_rect.m_bottom; y++)
|
for (int y = old_rect.m_top; y <= old_rect.m_bottom; y++)
|
||||||
{
|
{
|
||||||
for (int x = old_rect.m_left; x <= old_rect.m_right; x++)
|
for (int x = old_rect.m_left; x <= old_rect.m_right; x++)
|
||||||
|
|||||||
@@ -112,10 +112,7 @@ int c_dialog::set_me_the_dialog()
|
|||||||
if(ms_the_dialogs[i].surface == 0)
|
if(ms_the_dialogs[i].surface == 0)
|
||||||
{
|
{
|
||||||
ms_the_dialogs[i].dialog = this;
|
ms_the_dialogs[i].dialog = this;
|
||||||
if(this)
|
ms_the_dialogs[i].surface = surface;
|
||||||
{
|
|
||||||
ms_the_dialogs[i].surface = surface;
|
|
||||||
}
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user