Commit 30abb32f authored by claes's avatar claes

Tooltip position in subwindow corrected

parent 4dbb33ca
/* /*
* Proview $Id: glow_tiptext.cpp,v 1.4 2007-05-07 14:35:03 claes Exp $ * Proview $Id: glow_tiptext.cpp,v 1.5 2008-01-17 14:16:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -64,12 +64,12 @@ void GlowTipText::draw_text( GlowArrayElem *e, char *text, int x, int y) ...@@ -64,12 +64,12 @@ void GlowTipText::draw_text( GlowArrayElem *e, char *text, int x, int y)
strncpy( tiptext, text, sizeof(tiptext)); strncpy( tiptext, text, sizeof(tiptext));
text_object = e; text_object = e;
if ( text_x + text_width > ctx->mw.window_width) if ( text_x + text_width > ctx->mw.window_width + ctx->mw.subwindow_x)
text_x = ctx->mw.window_width - text_width; text_x = ctx->mw.window_width + ctx->mw.subwindow_x - text_width;
if ( text_x < 0) if ( text_x < 0)
text_x = 0; text_x = 0;
if ( text_y + text_height > ctx->mw.window_height) if ( text_y + text_height > ctx->mw.window_height + ctx->mw.subwindow_y)
text_y = ctx->mw.window_height - text_height; text_y = ctx->mw.window_height + ctx->mw.subwindow_y - text_height;
if ( text_y < 0) if ( text_y < 0)
text_y = 0; text_y = 0;
......
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