fix warnings

This commit is contained in:
lixianjing 2019-12-03 16:02:55 +08:00
parent a844bbbe7b
commit 11fe2b6fc3

View File

@ -1,4 +1,4 @@
/**
/**
* File: slide_view.h
* Author: AWTK Develop Team
* Brief: slide_view
@ -654,24 +654,6 @@ static ret_t slide_view_paint_prev_next_h_translate(slide_view_t* slide_view, ca
return RET_OK;
}
static ret_t slide_view_set_prev_global_alpha_h(slide_view_t* slide_view, canvas_t* c) {
if (anim_hint_is_overlap_with_alpha(slide_view)) {
uint8_t a = 0;
int32_t offset = slide_view->xoffset;
int32_t total = WIDGET(slide_view)->w;
if (offset > 0) {
a = (0xff * tk_abs(offset)) / total;
} else {
a = 0xff - (0xff * tk_abs(offset)) / total;
}
canvas_set_global_alpha(c, a);
}
return RET_OK;
}
static ret_t slide_view_paint_prev_next_h_overlap(slide_view_t* slide_view, canvas_t* c,
widget_t* prev, widget_t* next, int32_t xoffset) {
rect_t r;