Changeset 36029 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Feb 21, 2011 9:58:26 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/state.c
r33656 r36029 3908 3908 checkGLcall("glOrtho"); 3909 3909 3910 /* Window Coord 0 is the middle of the first pixel, so translate by 1/2 pixels */3911 glTranslatef(63.0f / 128.0f, 63.0f / 128.0f, 0.0f);3912 checkGLcall("glTranslatef(63.0f / 128.0f, 63.0f / 128.0f, 0.0f)");3913 3914 3910 /* D3D texture coordinates are flipped compared to OpenGL ones, so 3915 3911 * render everything upside down when rendering offscreen. */ 3916 3912 if (context->render_offscreen) 3917 3913 { 3914 /* Window Coord 0 is the middle of the first pixel, so translate by 1/2 pixels */ 3915 glTranslatef(63.0f / 128.0f, -63.0f / 128.0f, 0.0f); 3916 checkGLcall("glTranslatef(63.0f / 128.0f, -63.0f / 128.0f, 0.0f)"); 3918 3917 glScalef(1.0f, -1.0f, 1.0f); 3919 3918 checkGLcall("glScalef"); 3919 } 3920 else 3921 { 3922 /* Window Coord 0 is the middle of the first pixel, so translate by 1/2 pixels */ 3923 glTranslatef(63.0f / 128.0f, 63.0f / 128.0f, 0.0f); 3924 checkGLcall("glTranslatef(63.0f / 128.0f, 63.0f / 128.0f, 0.0f)"); 3920 3925 } 3921 3926 } else {
Note:
See TracChangeset
for help on using the changeset viewer.