From b8df5fd584a0314f24707db12d1dd028744f0f56 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 29 Nov 2015 01:43:58 +0100 Subject: [PATCH] (exynos_gfx.c) Nits --- gfx/drivers/exynos_gfx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gfx/drivers/exynos_gfx.c b/gfx/drivers/exynos_gfx.c index a2c196afe9..fdc2708392 100644 --- a/gfx/drivers/exynos_gfx.c +++ b/gfx/drivers/exynos_gfx.c @@ -276,10 +276,9 @@ static const char *exynos_buffer_name(enum exynos_buffer_type type) static struct exynos_bo *exynos_create_mapped_buffer( struct exynos_device *dev, unsigned size) { - struct exynos_bo *buf; const unsigned flags = 0; + struct exynos_bo *buf = exynos_bo_create(dev, size, flags); - buf = exynos_bo_create(dev, size, flags); if (!buf) { 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; const enum exynos_image_type buf_type = defaults[EXYNOS_IMAGE_FONT].buf_type; - const unsigned buf_width = pdata->src[EXYNOS_IMAGE_FONT]->width; - uint16_t *__restrict__ dst = (uint16_t*)pdata->buf[buf_type]->vaddr + + const unsigned buf_width = pdata->src[EXYNOS_IMAGE_FONT]->width; + uint16_t *__restrict__ dst = (uint16_t*)pdata->buf[buf_type]->vaddr + dst_y * buf_width + dst_x; for (y = 0; y < g_height; ++y, src += g_pitch, dst += buf_width)