A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 37 lines 1.3 kB view raw
1/*************************************************************************** 2* __________ __ ___. 3* Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7* \/ \/ \/ \/ \/ 8* $Id$ 9* 10* Additional LCD routines not present in the rockbox core 11* Core functions 12* 13* Copyright (C) 2005 Jens Arnold 14* 15* This program is free software; you can redistribute it and/or 16* modify it under the terms of the GNU General Public License 17* as published by the Free Software Foundation; either version 2 18* of the License, or (at your option) any later version. 19* 20* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21* KIND, either express or implied. 22* 23****************************************************************************/ 24 25#include "plugin.h" 26 27#include "xlcd.h" 28 29fb_data* get_framebuffer(struct viewport *vp, size_t *stride) 30{ 31 struct viewport *vp_main = *(rb->screens[SCREEN_MAIN]->current_viewport); 32 if (vp) 33 *vp = *vp_main; 34 if (stride) 35 *stride = vp_main->buffer->stride; 36 return vp_main->buffer->fb_ptr; 37}