Commit 98fb5207 authored by claes's avatar claes

Submenu position corrected

parent 0ae451a0
/*
* Proview $Id: glow_growmenu.cpp,v 1.9 2006-07-05 11:30:09 claes Exp $
* Proview $Id: glow_growmenu.cpp,v 1.10 2006-09-07 14:06:25 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -192,8 +192,10 @@ void GrowMenu::draw( GlowTransform *t, int highlight, int hot, void *node, void
ur_y = int(ctx->y_high * ctx->zoom_factor_y);
ll_y = ur_y - int(tot_z_height);
ll.posit( ll.x, ll_y / ctx->zoom_factor_y);
ur.posit_z( ur.z_x, ur_y + ctx->offset_y); // Might not always be correct?
}
ur.posit_z( ur.z_x, ur_y + ctx->offset_y);
else
ur.posit_z( ur_x + ctx->offset_x, ur_y + ctx->offset_y);
ll_y = int( ll.y * ctx->zoom_factor_y) - ctx->offset_y;
get_node_borders();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment