* rna for DNA_key_types.h, also linked to key member of Lattice, others need to be checked.
This commit is contained in:
2008-12-03 21:18:10 +00:00
parent 10232f2c86
commit 6241b8a57f
8 changed files with 163 additions and 3 deletions

View File

@@ -42,8 +42,6 @@
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "ED_screen.h"
#include "UI_resources.h"
#include "UI_view2d.h"
@@ -365,7 +363,17 @@ void UI_view2d_view_orthospecial(const bContext *C, View2D *v2d, short xaxis)
/* Restore view matrices after drawing */
void UI_view2d_view_restore(const bContext *C)
{
ED_region_pixelspace(C, C->region);
ARegion *region= C->region;
int winx, winy;
/* calculate extents of region */
winx= region->winrct.xmax - region->winrct.xmin;
winy= region->winrct.ymax - region->winrct.ymin;
/* set default region matrix - pixel offsets (0.375) for 1:1 correspondance are not applied,
* as they were causing some unwanted offsets when drawing
*/
wmOrtho2(C->window, 0, winx, 0, winy);
}
/* *********************************************************************** */