Should have done ages ago!
authorTon Roosendaal <ton@blender.org>
Fri, 7 Jan 2005 21:48:25 +0000 (21:48 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 7 Jan 2005 21:48:25 +0000 (21:48 +0000)
commit341bb20dbdf0136dfac45357624fca530b1f7acc
tree52b984edc51c481048224dade0ababdaa3f49163
parent8ff0209ca5f29eb0911d260f1f6b78f115dc7b70
Should have done ages ago!

This commit replaces the glDrawPixels and rectwrite_part with the very
nice (thanks zr!) glaDrawPixelsSafe() call. Result is:
- 3d window background image displays correctly onto the edges when
  zoomed in extreme
- same for UV image window and sequence preview
- preview render now doesnt disappear when left part is outside window
(zr also deserves kick in butt for not doing this himself in NaN days!)

Especially from preview drawing quite some old hacks were deleted. It is
even quite some faster.
Please notify me when it doesnt work on your card... this now is just 100%
according opengl guidelines though :)

Also fixes bug #2100
source/blender/include/BIF_drawimage.h
source/blender/src/drawimage.c
source/blender/src/drawseq.c
source/blender/src/drawview.c
source/blender/src/previewrender.c