mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
2007-06-28 Matthew Allum <mallum@openedhand.com>
* clutter/cogl/gl/cogl.c: (cogl_setup_viewport): Improve fixed z_camera value for defualt perspective. Appears pixel perfect on ATI and Intel at least
This commit is contained in:
parent
3765475f32
commit
ca450782cb
@ -1,3 +1,9 @@
|
|||||||
|
2007-06-28 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/cogl/gl/cogl.c: (cogl_setup_viewport):
|
||||||
|
Improve fixed z_camera value for defualt perspective.
|
||||||
|
Appears pixel perfect on ATI and Intel at least
|
||||||
|
|
||||||
2007-06-28 Tomas Frydrych <tf@openedhand.com>
|
2007-06-28 Tomas Frydrych <tf@openedhand.com>
|
||||||
|
|
||||||
* tests/test-perspective.c:
|
* tests/test-perspective.c:
|
||||||
|
@ -515,12 +515,14 @@ cogl_setup_viewport (guint width,
|
|||||||
* actor being offscreen. Perhaps more significantly, it also causes
|
* actor being offscreen. Perhaps more significantly, it also causes
|
||||||
* hinting artifacts when rendering text.
|
* hinting artifacts when rendering text.
|
||||||
*
|
*
|
||||||
* So for the default 60 deg angle we worked out that the value of 0.8699
|
* So for the default 60 deg angle we worked out that the value of 0.869
|
||||||
* is giving correct stretch and no noticeable artifacts on text.
|
* is giving correct stretch and no noticeable artifacts on text. Seems
|
||||||
|
* good on all drivers too.
|
||||||
*/
|
*/
|
||||||
#define DEFAULT_Z_CAMERA 0.8699f
|
#define DEFAULT_Z_CAMERA 0.869f
|
||||||
z_camera = DEFAULT_Z_CAMERA;
|
z_camera = DEFAULT_Z_CAMERA;
|
||||||
|
|
||||||
|
|
||||||
if (fovy != CFX_60)
|
if (fovy != CFX_60)
|
||||||
{
|
{
|
||||||
ClutterFixed fovy_rad = CFX_MUL (fovy, CFX_PI) / 180;
|
ClutterFixed fovy_rad = CFX_MUL (fovy, CFX_PI) / 180;
|
||||||
|
Loading…
Reference in New Issue
Block a user