mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(Vita) Add forward declaration for scePowerSetArmClockFrequency
This commit is contained in:
parent
4ccbee5d8d
commit
ea6119c1c7
@ -22,6 +22,8 @@
|
||||
#ifdef VITA
|
||||
#include <psp2/moduleinfo.h>
|
||||
#include <psp2/power.h>
|
||||
|
||||
int scePowerSetArmClockFrequency(int freq);
|
||||
#else
|
||||
#include <pspkernel.h>
|
||||
#include <pspdebug.h>
|
||||
|
@ -13,15 +13,16 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <vita2d.h>
|
||||
|
||||
#include <retro_inline.h>
|
||||
|
||||
#include "../../defines/psp_defines.h"
|
||||
#include "../../general.h"
|
||||
#include "../../driver.h"
|
||||
#include "../video_viewport.h"
|
||||
#include "../video_monitor.h"
|
||||
|
||||
#include <vita2d.h>
|
||||
|
||||
typedef struct vita_menu_frame
|
||||
{
|
||||
bool active;
|
||||
@ -418,12 +419,13 @@ static bool vita2d_gfx_read_viewport(void *data, uint8_t *buffer)
|
||||
|
||||
static void vita_set_filtering(void *data, unsigned index, bool smooth)
|
||||
{
|
||||
vita_video_t *vita = (vita_video_t *)data;
|
||||
vita_video_t *vita = (vita_video_t *)data;
|
||||
|
||||
if (vita){
|
||||
vita->tex_filter = smooth? SCE_GXM_TEXTURE_FILTER_LINEAR : SCE_GXM_TEXTURE_FILTER_POINT;
|
||||
vita2d_texture_set_texture_filter(vita->texture,vita->tex_filter);
|
||||
}
|
||||
if (vita)
|
||||
{
|
||||
vita->tex_filter = smooth? SCE_GXM_TEXTURE_FILTER_LINEAR : SCE_GXM_TEXTURE_FILTER_POINT;
|
||||
vita2d_texture_set_texture_filter(vita->texture,vita->tex_filter);
|
||||
}
|
||||
}
|
||||
|
||||
static void vita_set_aspect_ratio(void *data, unsigned aspectratio_index)
|
||||
@ -503,20 +505,22 @@ static void vita_set_texture_frame(void *data, const void *frame, bool rgb32,
|
||||
|
||||
if (rgb32)
|
||||
{
|
||||
stride /= 4;
|
||||
uint32_t *tex32 = tex_p;
|
||||
const uint32_t *frame32 = frame;
|
||||
|
||||
stride /= 4;
|
||||
|
||||
for (i = 0; i < height; i++)
|
||||
for (j = 0; j < width; j++)
|
||||
tex32[j + i*stride] = frame32[j + i*width];
|
||||
}
|
||||
else
|
||||
{
|
||||
stride /= 2;
|
||||
uint16_t *tex16 = tex_p;
|
||||
const uint16_t *frame16 = frame;
|
||||
|
||||
stride /= 2;
|
||||
|
||||
for (i = 0; i < height; i++)
|
||||
for (j = 0; j < width; j++)
|
||||
tex16[j + i*stride] = frame16[j + i*width];
|
||||
|
Loading…
x
Reference in New Issue
Block a user