From fa0326af43f132e01ea715652c0ba59787723321 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Thu, 6 Dec 2012 00:26:50 +0100 Subject: Context menu now opens at the correct location. --- atari/ctxmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'atari') diff --git a/atari/ctxmenu.c b/atari/ctxmenu.c index 66c4b7f65..c9189af22 100644 --- a/atari/ctxmenu.c +++ b/atari/ctxmenu.c @@ -75,7 +75,7 @@ static struct s_context_info * get_context_info( struct gui_window * gw, short m h = bw->current_content; ctxinfo.flags = 0; - browser_get_rect( gw, BR_CONTENT, &bwrect ); + guiwin_get_grect(gw->root->win, GUIWIN_AREA_CONTENT, &bwrect); mx -= bwrect.g_x; my -= bwrect.g_y; if( (mx < 0 || mx > bwrect.g_w) || (my < 0 || my > bwrect.g_h) ){ @@ -109,7 +109,7 @@ static struct s_context_info * get_context_info( struct gui_window * gw, short m return( &ctxinfo ); } -void context_popup( struct gui_window * gw, short x, short y ) +void context_popup(struct gui_window * gw, short x, short y) { #define POP_FIRST_ITEM POP_CTX_CUT_SEL -- cgit v1.2.3