Commit 12bc55d1 authored by claes's avatar claes

Scrollbar window adjusted

parent ab65fab8
/*
* Proview $Id: flow_browctx.cpp,v 1.7 2007-09-25 13:11:00 claes Exp $
* Proview $Id: flow_browctx.cpp,v 1.8 2008-05-13 13:55:29 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -104,10 +104,10 @@ void BrowCtx::change_scrollbar()
}
data.scroll_data = scroll_data;
data.total_width = int( (x_right - x_left) / scroll_size);
data.total_height = int( (y_high - y_low) / scroll_size);
data.window_width = int( window_width / scroll_size / zoom_factor);
data.window_height = int( window_height / scroll_size / zoom_factor + 1);
data.total_width = int( (x_right - x_left) / scroll_size) + 1;
data.total_height = int( (y_high - y_low) / scroll_size) + 1;
data.window_width = int( window_width / scroll_size / zoom_factor) + 1;
data.window_height = int( window_height / scroll_size / zoom_factor) + 1;
data.offset_x = int( offset_x / scroll_size / zoom_factor - x_left /
scroll_size);
data.offset_y = int( offset_y /scroll_size / zoom_factor - y_low /
......
/*
* Proview $Id: flow_ctx.cpp,v 1.14 2008-02-27 15:07:41 claes Exp $
* Proview $Id: flow_ctx.cpp,v 1.15 2008-05-13 13:56:03 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -1987,10 +1987,10 @@ void FlowCtx::change_scrollbar()
return;
data.scroll_data = scroll_data;
data.total_width = int( (x_right - x_left) / scroll_size);
data.total_height = int( (y_high - y_low) / scroll_size);
data.window_width = int( window_width / scroll_size / zoom_factor);
data.window_height = int( window_height / scroll_size / zoom_factor + 1);
data.total_width = int( (x_right - x_left) / scroll_size) + 1;
data.total_height = int( (y_high - y_low) / scroll_size) + 1;
data.window_width = int( window_width / scroll_size / zoom_factor) + 1;
data.window_height = int( window_height / scroll_size / zoom_factor) + 1;
data.offset_x = int( offset_x / scroll_size / zoom_factor - x_left /
scroll_size);
data.offset_y = int( offset_y /scroll_size / zoom_factor - y_low /
......
/*
* Proview $Id: glow_colpalctx.cpp,v 1.5 2007-01-04 07:57:38 claes Exp $
* Proview $Id: glow_colpalctx.cpp,v 1.6 2008-05-13 13:58:12 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -184,10 +184,10 @@ void ColPalCtx::change_scrollbar()
}
data.scroll_data = scroll_data;
data.total_width = int( (x_right - x_left) / scroll_size);
data.total_height = int( (y_high - y_low) / scroll_size);
data.window_width = int( mw.window_width / scroll_size / mw.zoom_factor_x);
data.window_height = int( mw.window_height / scroll_size / mw.zoom_factor_y + 1);
data.total_width = int( (x_right - x_left) / scroll_size) + 1;
data.total_height = int( (y_high - y_low) / scroll_size) + 1;
data.window_width = int( mw.window_width / scroll_size / mw.zoom_factor_x) + 1;
data.window_height = int( mw.window_height / scroll_size / mw.zoom_factor_y) + 1;
data.offset_x = int( mw.offset_x / scroll_size / mw.zoom_factor_x - x_left /
scroll_size);
data.offset_y = int( mw.offset_y /scroll_size / mw.zoom_factor_y - y_low /
......
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