mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
(exynos_gfx.c) Nits
This commit is contained in:
parent
127448f848
commit
b8df5fd584
@ -276,10 +276,9 @@ static const char *exynos_buffer_name(enum exynos_buffer_type type)
|
|||||||
static struct exynos_bo *exynos_create_mapped_buffer(
|
static struct exynos_bo *exynos_create_mapped_buffer(
|
||||||
struct exynos_device *dev, unsigned size)
|
struct exynos_device *dev, unsigned size)
|
||||||
{
|
{
|
||||||
struct exynos_bo *buf;
|
|
||||||
const unsigned flags = 0;
|
const unsigned flags = 0;
|
||||||
|
struct exynos_bo *buf = exynos_bo_create(dev, size, flags);
|
||||||
|
|
||||||
buf = exynos_bo_create(dev, size, flags);
|
|
||||||
if (!buf)
|
if (!buf)
|
||||||
{
|
{
|
||||||
RARCH_ERR("[video_exynos]: failed to create temp buffer object\n");
|
RARCH_ERR("[video_exynos]: failed to create temp buffer object\n");
|
||||||
@ -359,8 +358,8 @@ static void exynos_put_glyph_rgba4444(struct exynos_data *pdata,
|
|||||||
{
|
{
|
||||||
unsigned x, y;
|
unsigned x, y;
|
||||||
const enum exynos_image_type buf_type = defaults[EXYNOS_IMAGE_FONT].buf_type;
|
const enum exynos_image_type buf_type = defaults[EXYNOS_IMAGE_FONT].buf_type;
|
||||||
const unsigned buf_width = pdata->src[EXYNOS_IMAGE_FONT]->width;
|
const unsigned buf_width = pdata->src[EXYNOS_IMAGE_FONT]->width;
|
||||||
uint16_t *__restrict__ dst = (uint16_t*)pdata->buf[buf_type]->vaddr +
|
uint16_t *__restrict__ dst = (uint16_t*)pdata->buf[buf_type]->vaddr +
|
||||||
dst_y * buf_width + dst_x;
|
dst_y * buf_width + dst_x;
|
||||||
|
|
||||||
for (y = 0; y < g_height; ++y, src += g_pitch, dst += buf_width)
|
for (y = 0; y < g_height; ++y, src += g_pitch, dst += buf_width)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user