diff options
author | Ton Roosendaal <ton@blender.org> | 2004-09-29 22:08:04 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-09-29 22:08:04 +0400 |
commit | 975f0fec0e42bb444102b2b9ca20b5d1258d06f5 (patch) | |
tree | 149ace5c7e82ec4839f24a9231eff3b9dbde78e4 /source/blender/src/mywindow.c | |
parent | c1aea47313474b1162f9cf18ea119a6ce35a8be3 (diff) |
Pooh pooh! This backbuffer system for selection codes works much easier on
osx with AUX buffers, than on other systems with GL_BACK buffer...
Now i've added a check in force_draw to also redraw the backbuffer, if
needed. ANother weak point in the sublooping system in blender.
Diffstat (limited to 'source/blender/src/mywindow.c')
-rw-r--r-- | source/blender/src/mywindow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/mywindow.c b/source/blender/src/mywindow.c index d92e8c16409..f7738ce0800 100644 --- a/source/blender/src/mywindow.c +++ b/source/blender/src/mywindow.c @@ -96,7 +96,7 @@ void mywindow_init_mainwin(Window *win, int orx, int ory, int sizex, int sizey) mainwindow.ymax= ory+sizey-1; mainwindow.qevents= NULL; - myortho2(-0.5, (float)sizex-0.5, -0.5, (float)sizey-0.5); + myortho2(-0.375, (float)sizex-0.375, -0.375, (float)sizey-0.375); glLoadIdentity(); glGetFloatv(GL_PROJECTION_MATRIX, (float *)mainwindow.winmat); @@ -128,7 +128,7 @@ void mywindow_build_and_set_renderwin( int orx, int ory, int sizex, int sizey) renderwindow.ymax= ory+sizey-1; renderwindow.qevents= NULL; - myortho2(-0.5, (float)sizex-0.5, -0.5, (float)sizey-0.5); + myortho2(-0.375, (float)sizex-0.375, -0.375, (float)sizey-0.375); glLoadIdentity(); glGetFloatv(GL_PROJECTION_MATRIX, (float *)renderwindow.winmat); |