Deleted trailing whitespace
This commit is contained in:
parent
a66ef32da2
commit
b1fce9e933
|
@ -184,7 +184,8 @@ STATIC mp_obj_t bitmap_subscr(mp_obj_t self_in, mp_obj_t index_obj, mp_obj_t val
|
|||
//| : param int y1: Minimum y-value for rectangular bounding box to be copied from the source bitmap
|
||||
//| : param int x2: Maximum x-value for rectangular bounding box to be copied from the source bitmap
|
||||
//| : param int y2: Maximum y-value for rectangular bounding box to be copied from the source bitmap
|
||||
//| : param int skip_index: bitmap palette index in the source that will not be copied, set `None` to copy all pixels
|
||||
//| : param int skip_index: bitmap palette index in the source that will not be copied,
|
||||
//| set `None` to copy all pixels"""
|
||||
//| ...
|
||||
//|
|
||||
|
||||
|
@ -229,7 +230,6 @@ STATIC mp_obj_t displayio_bitmap_obj_blit(size_t n_args, const mp_obj_t *pos_arg
|
|||
y2 = mp_obj_get_int(args[ARG_y2].u_obj);
|
||||
}
|
||||
|
||||
|
||||
// Check x,y are within self (target) bitmap boundary
|
||||
if ( (x < 0) || (y < 0) || (x > self->width) || (y > self->height) ) {
|
||||
mp_raise_ValueError(translate("(x,y): out of range of target bitmap"));
|
||||
|
@ -241,7 +241,6 @@ STATIC mp_obj_t displayio_bitmap_obj_blit(size_t n_args, const mp_obj_t *pos_arg
|
|||
(y2 < 0) || (y2 > source->height) ) {
|
||||
mp_raise_ValueError(translate("(x1,y1) or (x2,y2): out of range of source bitmap"));
|
||||
}
|
||||
|
||||
// Ensure x1 < x2 and y1 < y2
|
||||
if (x1 > x2) {
|
||||
int16_t temp=x2;
|
||||
|
|
Loading…
Reference in New Issue