[brlcad-commits] SF.net SVN: brlcad:[39493] brlcad/branches/dmtogl/src/libdm/dm-togl.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2010-06-02 02:12:23
|
Revision: 39493 http://brlcad.svn.sourceforge.net/brlcad/?rev=39493&view=rev Author: starseeker Date: 2010-06-02 02:12:15 +0000 (Wed, 02 Jun 2010) Log Message: ----------- OK, this gets resizing going, although the intermediate states aren't quite smooth... Modified Paths: -------------- brlcad/branches/dmtogl/src/libdm/dm-togl.c Modified: brlcad/branches/dmtogl/src/libdm/dm-togl.c =================================================================== --- brlcad/branches/dmtogl/src/libdm/dm-togl.c 2010-06-02 00:44:42 UTC (rev 39492) +++ brlcad/branches/dmtogl/src/libdm/dm-togl.c 2010-06-02 02:12:15 UTC (rev 39493) @@ -221,7 +221,7 @@ /* - * O G L _ C O N F I G U R E W I N + * T O G L _ C O N F I G U R E W I N * * Either initially, or on resize/reshape of the window, * sense the actual size of the window, and perform any @@ -239,10 +239,15 @@ bu_log("togl_configureWin_guts()\n"); Togl_MakeCurrent(((struct togl_vars *)dmp->dm_vars.priv_vars)->togl); - +/* width = Togl_Width(((struct togl_vars *)dmp->dm_vars.priv_vars)->togl); height = Togl_Height(((struct togl_vars *)dmp->dm_vars.priv_vars)->togl); +*/ + width = Tk_Width(((struct dm_xvars *)dmp->dm_vars.pub_vars)->xtkwin); + height = Tk_Height(((struct dm_xvars *)dmp->dm_vars.pub_vars)->xtkwin); + Tk_ResizeWindow(Togl_TkWin(((struct togl_vars *)dmp->dm_vars.priv_vars)->togl), width, height); + /* nothing to do */ if (!force && dmp->dm_height == width && This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |