* little swap-eroo to get things compiled with msvc.
authorNathan Letwory <nathan@letworyinteractive.com>
Fri, 19 Dec 2008 17:59:54 +0000 (17:59 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Fri, 19 Dec 2008 17:59:54 +0000 (17:59 +0000)
  - first the declarations, then the code! :)

source/blender/windowmanager/intern/wm_subwindow.c

index d19944bcf1af3c967f8ce430e230676c508fa797..abc78f06f8fc904984ddcc2d62d3f600f49396cb 100644 (file)
@@ -234,8 +234,8 @@ static wmSubWindow *_curswin= NULL;
 /* enable the WM versions of opengl calls */
 void wmSubWindowSet(wmWindow *win, int swinid)
 {
-       _curswin= swin_from_swinid(win, swinid);
        int width, height;
+       _curswin= swin_from_swinid(win, swinid);
        
        if(_curswin==NULL) {
                printf("wmSubWindowSet %d: doesn't exist\n", swinid);