dev->p2p_mode = p2p_mode;
switch (dev->p2p_mode) {
case 0:
- if ((input->frame_width < dev->disp_width) &&
- (input->frame_height < dev->disp_height)) {
+ if ((input->frame_width <= dev->disp_width) &&
+ (input->frame_height <= dev->disp_height)) {
dev->target_width = input->frame_width;
dev->target_height = input->frame_height;
} else {
new_vf->height = dev->target_height;
break;
case 1:
- if ((input->frame_width < dev->disp_width) &&
- (input->frame_height < dev->disp_height)) {
+ if ((input->frame_width <= dev->disp_width) &&
+ (input->frame_height <= dev->disp_height)) {
dev->target_width = input->frame_width;
dev->target_height = input->frame_height;
} else {
dev->p2p_mode = p2p_mode;
switch (dev->p2p_mode) {
case 0:
- if ((input->frame_width < dev->disp_width) &&
- (input->frame_height < dev->disp_height)) {
+ if ((input->frame_width <= dev->disp_width) &&
+ (input->frame_height <= dev->disp_height)) {
dev->target_width = input->frame_width;
dev->target_height = input->frame_height;
} else {
new_vf->height = dev->target_height;
break;
case 1:
- if ((input->frame_width < dev->disp_width) &&
- (input->frame_height < dev->disp_height)) {
+ if ((input->frame_width <= dev->disp_width) &&
+ (input->frame_height <= dev->disp_height)) {
dev->target_width = input->frame_width;
dev->target_height = input->frame_height;
} else {