diff options
author | 2015-02-12 00:28:42 +0100 | |
---|---|---|
committer | 2015-02-12 00:28:42 +0100 | |
commit | b7b984766eda6fa000ddecaf6161d9827dc08498 (patch) | |
tree | 650fbdbae77d849f31d71790f0411c9bdb5eaee3 /src/emu/render.c | |
parent | 17204d6f3678d43d1bc48a1bc5f412643a48600c (diff) |
Add a pointer to the render_container to quad_primitives. This can be
used to pick up user_settings for gamma, brightness and contrast in case
they will ever be supported by the OSD layer. (nw)
Diffstat (limited to 'src/emu/render.c')
-rw-r--r-- | src/emu/render.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/render.c b/src/emu/render.c index 2370d015a35..1fa8bcb5f16 100644 --- a/src/emu/render.c +++ b/src/emu/render.c @@ -279,6 +279,7 @@ void render_primitive::reset() { // public state type = INVALID; + container = NULL; bounds.x0 = 0; bounds.y0 = 0; bounds.x1 = 0; @@ -1754,6 +1755,9 @@ void render_target::add_container_primitives(render_primitive_list &list, const // allocate the primitive and set the transformed bounds/color data render_primitive *prim = list.alloc(render_primitive::INVALID); + + prim->container = &container; /* pass the container along for access to user_settings */ + prim->bounds.x0 = render_round_nearest(container_xform.xoffs + bounds.x0 * container_xform.xscale); prim->bounds.y0 = render_round_nearest(container_xform.yoffs + bounds.y0 * container_xform.yscale); if (curitem->internal() & INTERNAL_FLAG_CHAR) |