summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2010-01-18 18:32:39 +0800
committerChia-I Wu <olvaffe@gmail.com>2010-01-18 18:34:01 +0800
commit6291ab21c558cbf9a55a1ff8eecfb0c1566f2fde (patch)
treef1b74affcb39c7c58a99adb7b49049044ef29096
parent6b2cf2c083f9714cfabffb3d0a87fe7f81b73fdd (diff)
Embed a pointer to config in st_framebuffer.issue1-proposal
The config (instead of a pointer to it) may be embedded in st_framebuffer. But with the const qualifier, we cannot initialize the fb in the first place :(
-rw-r--r--st_api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/st_api.h b/st_api.h
index 900737a..6dd93c5 100644
--- a/st_api.h
+++ b/st_api.h
@@ -155,7 +155,7 @@ struct st_framebuffer_config
*/
struct st_framebuffer
{
- const struct st_framebuffer_config config;
+ const struct st_framebuffer_config *config;
/**
* Flush the front buffer.