2012-04-21 21:13:50 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2012-03-29 12:17:03 +00:00
|
|
|
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2012 - Daniel De Matteis
|
|
|
|
*
|
2012-04-21 21:13:50 +00:00
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
2012-03-29 12:17:03 +00:00
|
|
|
* 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.
|
|
|
|
*
|
2012-04-21 21:13:50 +00:00
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
2012-03-29 12:17:03 +00:00
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
2012-04-21 21:31:57 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
2012-03-29 12:17:03 +00:00
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2012-03-29 13:07:48 +00:00
|
|
|
#ifndef _FUNC_HOOKS_H
|
|
|
|
#define _FUNC_HOOKS_H
|
2012-03-29 12:17:03 +00:00
|
|
|
|
|
|
|
/*============================================================
|
2012-03-29 13:30:27 +00:00
|
|
|
GENERAL
|
2012-03-29 12:17:03 +00:00
|
|
|
============================================================ */
|
2012-04-13 23:00:09 +00:00
|
|
|
#if defined(__CELLOS_LV2__) || defined(_XBOX) || defined(GEKKO)
|
2012-03-29 13:30:27 +00:00
|
|
|
#define HAVE_GRIFFIN_OVERRIDE_VIDEO_FRAME_FUNC 1
|
2012-03-29 13:33:28 +00:00
|
|
|
#endif
|
2012-03-29 12:17:03 +00:00
|
|
|
|
2012-04-21 21:25:32 +00:00
|
|
|
#define rarch_render_cached_frame() \
|
2012-03-29 13:07:48 +00:00
|
|
|
const char *msg = msg_queue_pull(g_extern.msg_queue); \
|
2012-04-10 15:44:46 +00:00
|
|
|
video_frame_func(g_extern.frame_cache.data, g_extern.frame_cache.width, g_extern.frame_cache.height, g_extern.frame_cache.pitch, msg);
|
2012-03-29 12:17:03 +00:00
|
|
|
|
|
|
|
#endif
|