raster pushed a commit to branch master.
commit 9deb05a8326616aaabd86130e5ec9fa1a71cd6d2
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Fri Mar 29 21:57:55 2013 +0900
fix menu flipping/flickering when menu bigger than screen.
---
src/bin/e_menu.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/bin/e_menu.c b/src/bin/e_menu.c
index f3baecb..5a26e7c 100644
--- a/src/bin/e_menu.c
+++ b/src/bin/e_menu.c
@@ -2133,8 +2133,12 @@ _e_menu_reposition(E_Menu *m)
m->cur.x = m->parent_item->menu->cur.x + m->parent_item->menu->cur.w;
parent_item_bottom = m->parent_item->y;
+ printf("XXXXXXXXXX %i %i | %i | %i %i\n",
+ m->cur.h, m->zone->h, parent_item_bottom,
+ m->container_y, m->container_h);
if (m->cur.h > m->zone->h)
{
+#if 0 // we can't win - we just flip back and forth, so let it go off and use
scrolling
/* menu is larger than screen */
if (parent_item_bottom > (m->zone->h / 2))
/* more is shown if menu goes up */
@@ -2142,6 +2146,7 @@ _e_menu_reposition(E_Menu *m)
else
/* more is shown if menu goes down */
m->cur.y = parent_item_bottom - m->container_y;
+#endif
}
else
{
--
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2