Commit 845bc323 authored by claes's avatar claes

Component window could change dubbelbuffering of main window

parent fbd89fcb
/*
* Proview $Id: glow_growctx.cpp,v 1.28 2007-08-29 11:43:22 claes Exp $
* Proview $Id: glow_growctx.cpp,v 1.29 2007-11-02 08:35:48 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -2027,6 +2027,7 @@ void GrowCtx::open_grow( ifstream& fp)
if ( end_found)
break;
}
if ( !is_component) {
if ( double_buffered && mw.window && ! mw.double_buffer_on()) {
mw.set_double_buffer_on(1);
gdraw->create_buffer( &mw);
......@@ -2046,6 +2047,7 @@ void GrowCtx::open_grow( ifstream& fp)
}
if ( mw.window)
mw.set_double_buffered( double_buffered);
}
if ( gdraw)
set_background( background_color);
......
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