From fb1853654bbb30c371cefbf3d7447090047096eb Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Mon, 10 Sep 2012 02:02:30 +0200 Subject: [PATCH] (Android) Add null_fonts, libretroarch links now --- console/griffin/griffin.c | 2 ++ gfx/fonts/null_fonts.c | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 gfx/fonts/null_fonts.c diff --git a/console/griffin/griffin.c b/console/griffin/griffin.c index faf3d4aaf7..6c3db4a424 100644 --- a/console/griffin/griffin.c +++ b/console/griffin/griffin.c @@ -164,6 +164,8 @@ FONTS #include "../../gfx/fonts/xdk1_xfonts.c" #elif defined(_XBOX360) #include "../../gfx/fonts/xdk360_fonts.cpp" +#elif defined(ANDROID) +#include "../../gfx/fonts/null_fonts.c" #endif /*============================================================ diff --git a/gfx/fonts/null_fonts.c b/gfx/fonts/null_fonts.c new file mode 100644 index 0000000000..a7c804aaba --- /dev/null +++ b/gfx/fonts/null_fonts.c @@ -0,0 +1,37 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2010-2012 - Hans-Kristian Arntzen + * Copyright (C) 2011-2012 - Daniel De Matteis + * + * RetroArch is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with RetroArch. + * If not, see . + */ + +#include "../gl_common.h" + +void gl_init_font(gl_t *gl, const char *font_path, unsigned font_size) +{ + (void)font_path; + (void)font_size; +} + +void gl_deinit_font(gl_t *gl) +{ +} + +void gl_render_msg(void *data, const char *msg) +{ + (void)data; +} + +void gl_render_msg_place(void *data, float x, float y, float scale, uint32_t color, const char *msg) +{ + (void)data; +}