~lnxhckr


#20 Button overwrite on smaller displays 2 years ago

Ticket created by ~lnxhckr on ~mil/framebufferphone-tickets

With 480x800 display size and height proportion of "1.0/3.0", the buttons of the first line are shifted/overwritten: "iopwertyu" Increasing size of area by setting height proportion to "1.0/2.5" works around this issue.

#19 Integer Overflow if status message doesn't fit 2 years ago

Ticket created by ~lnxhckr on ~mil/framebufferphone-tickets

I tested fbp on postmarketos with a device having 480x800 screen size. It fails with an integer overflow because the status message "Statusfile unconfigured for device!" didn't fit on the screen. The fault doesn't occur if length of message is reduced.

thread 3304 panic: integer overflow ???:?:?: 0x24cc37 in ??? (???) ... Program received signal SIGABRT, Aborted. ... #5 0x000000000022cdc0 in std.builtin.default_panic (msg=<error reading variable: Cannot access memory at address 0x0>, error_return_trace=0x0) at /usr/lib/zig/std/builtin.zig:744 #6 0x000000000024cc38 in interfaces.framebuffer.draw_grid (items=..., cols=10, rows=4, status_color=13107167, status_r=...) at /home/user/fbp/src/interfaces/framebuffer.zig:131 #7 0x0000000000233170 in Runtime.redraw_ui (runtime=0x7ffffdaba0) at Runtime.zig:384 ...