diff --git a/framebuffer/fb_frontend_sdl.c b/framebuffer/fb_frontend_sdl.c index b45f371d9..cc78aae8b 100644 --- a/framebuffer/fb_frontend_sdl.c +++ b/framebuffer/fb_frontend_sdl.c @@ -30,6 +30,7 @@ #include "desktop/gui.h" #include "desktop/options.h" #include "utils/messages.h" +#include "desktop/history_core.h" #include "framebuffer/fb_gui.h" #include "framebuffer/fb_plotters.h" @@ -110,6 +111,16 @@ void fb_os_input(struct gui_window *g, bool active) browser_window_destroy(g->bw); break; + case SDLK_b: + if (history_back_available(g->bw->history)) + history_back(g->bw, g->bw->history); + break; + + case SDLK_f: + if (history_forward_available(g->bw->history)) + history_forward(g->bw, g->bw->history); + break; + default: printf("The %s key was pressed!\n", SDL_GetKeyName(event.key.keysym.sym)); diff --git a/framebuffer/fb_gui.c b/framebuffer/fb_gui.c index 23d31b274..e2feecf93 100644 --- a/framebuffer/fb_gui.c +++ b/framebuffer/fb_gui.c @@ -128,7 +128,8 @@ static void fb_redraw(struct gui_window *g) if (c->locked) return; content_redraw(c, 0, -g->scrolly, g->width, g->height, - g->redraw_box.x0, g->redraw_box.y0, g->redraw_box.x1, g->redraw_box.y1, + g->redraw_box.x0, g->redraw_box.y0, + g->redraw_box.x1, g->redraw_box.y1, g->bw->scale, 0xFFFFFF); fb_os_redraw(&g->redraw_box); diff --git a/framebuffer/history.c b/framebuffer/history.c index 64b56e56a..f81a98c3e 100644 --- a/framebuffer/history.c +++ b/framebuffer/history.c @@ -20,6 +20,13 @@ void global_history_add(const char *url) { + const struct url_data *data; + + data = urldb_get_url_data(url); + if (!data) + return; + + } void global_history_add_recent(const char *url)