projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c8fa0f
)
Restore previous cast: CONST_CAST in C++ is not suitable for casting a pointer to...
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 2 Sep 2009 15:10:58 +0000
(15:10 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 2 Sep 2009 15:10:58 +0000
(15:10 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2860
38d2e660
-2303-0410-9eaa-
f027e97ec537
bertos/gui/menu.c
patch
|
blob
|
history
diff --git
a/bertos/gui/menu.c
b/bertos/gui/menu.c
index e689ff96cd96ef8362768ab4d5e20eb1dd434d3b..d897ae946825284ca40eb1ce4357374423565cda 100644
(file)
--- a/
bertos/gui/menu.c
+++ b/
bertos/gui/menu.c
@@
-280,7
+280,7
@@
static void menu_layout(
#if (ARCH & ARCH_NIGHTTEST)
#warning __FILTER_NEXT_WARNING__
#endif
- RenderHook renderhook = (item->flags & MIF_RENDERHOOK) ?
CONST_CAST(RenderHook, item->label)
: menu_defaultRenderHook;
+ RenderHook renderhook = (item->flags & MIF_RENDERHOOK) ?
(RenderHook)item->label
: menu_defaultRenderHook;
/* Render menuitem */
renderhook(menu->bitmap, ypos++, (i == selected), item);