From 265bbe4f8fed33baff0f6340ac0f36965b2f24ed Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 21 Apr 2013 13:17:15 -0700 Subject: [PATCH] Add struct for keeping track of background state --- src/gba/renderers/video-software.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/gba/renderers/video-software.h b/src/gba/renderers/video-software.h index aff0ec632..88efa15b1 100644 --- a/src/gba/renderers/video-software.h +++ b/src/gba/renderers/video-software.h @@ -5,6 +5,28 @@ #include +struct GBAVideoSoftwareBackground { + int index; + int enabled; + int priority; + uint32_t charBase; + int mosaic; + int multipalette; + uint32_t screenBase; + int overflow; + int size; + uint16_t x; + uint16_t y; + uint32_t refx; + uint32_t refy; + uint16_t dx; + uint16_t dmx; + uint16_t dy; + uint16_t dmy; + uint32_t sx; + uint32_t sy; +}; + struct GBAVideoSoftwareRenderer { struct GBAVideoRenderer d; @@ -13,6 +35,8 @@ struct GBAVideoSoftwareRenderer { union GBARegisterDISPCNT dispcnt; + struct GBAVideoSoftwareBackground bg[4]; + pthread_mutex_t mutex; pthread_cond_t cond; };