diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-01-22 03:10:46 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-01-22 03:10:46 +0300 |
commit | 1f51f0cfbe42cfeff7e51be3e86e6013598aea97 (patch) | |
tree | 047c052e337deb2bd2e3953d472390877433d6dc /overlay/overlay.h | |
parent | 30b63c2f87982468384daa55baf8acb27df885f1 (diff) |
Shmem based overlay (still WIP)
Diffstat (limited to 'overlay/overlay.h')
-rw-r--r-- | overlay/overlay.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/overlay/overlay.h b/overlay/overlay.h index baec50bf7..ab2518c25 100644 --- a/overlay/overlay.h +++ b/overlay/overlay.h @@ -83,16 +83,27 @@ struct OverlayMsgInit { unsigned int uiHeight; }; -#define OVERLAY_MSGTYPE_BLIT 1 +#define OVERLAY_MSGTYPE_SHMEM 1 +struct OverlayMsgShmem { + char a_cName[2048]; +}; + +#define OVERLAY_MSGTYPE_BLIT 2 struct OverlayMsgBlit { unsigned int x, y, w, h; }; -union OverlayMsgs { - char buffer[1]; - OverlayMsgHeader omh; - OverlayMsgInit omi; - OverlayMsgBlit omb; +struct OverlayMsg { + union { + char headerbuffer[1]; + OverlayMsgHeader omh; + }; + union { + char msgbuffer[1]; + OverlayMsgShmem oms; + OverlayMsgInit omi; + OverlayMsgBlit omb; + }; }; #endif |