LeMaker/linux-actions

framebuffer panning does not work

Opened this issue · 0 comments

Does not work for other yoffset than 0.

The problem may be owlfb-main.c

A comment can make the if take control over next line.

This is original code:

if (var->xoffset == fbi->var.xoffset && var->yoffset == fbi->var.yoffset)
// return 0;

new_var = fbi->var;
new_var.xoffset = var->xoffset;
new_var.yoffset = var->yoffset;

This comment >> // return 0;
Makes this line unactive on pan change >> new_var = fbi->var;

POSSIBLE FIX: add brackets

if (var->xoffset == fbi->var.xoffset &&
var->yoffset == fbi->var.yoffset)
{
//return 0;
}