Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
68c3a284
Commit
68c3a284
authored
Mar 07, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Mar 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- some Caps clean-up when no OpenGL compiled in
- fix some fonts displaying problems
parent
f7128016
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+9
-0
user.c
dlls/ddraw/ddraw/user.c
+11
-3
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
68c3a284
...
...
@@ -2069,6 +2069,15 @@ d3ddevice_set_ortho(IDirect3DDeviceImpl *This)
glMatrixMode
(
GL_MODELVIEW
);
glLoadIdentity
();
/* See the OpenGL Red Book for an explanation of the following translation (in the OpenGL
Correctness Tips section).
Basically, from what I understood, if the game does not filter the font texture,
as the 'real' pixel will lie at the middle of the two texels, OpenGL may choose the wrong
one and we will have strange artifacts (as the rounding and stuff may give different results
for different pixels, ie sometimes take the left pixel, sometimes the right).
*/
glTranslatef
(
0
.
375
,
0
.
375
,
0
);
glMatrixMode
(
GL_PROJECTION
);
glLoadMatrixf
(
trans_mat
);
}
...
...
dlls/ddraw/ddraw/user.c
View file @
68c3a284
...
...
@@ -172,7 +172,11 @@ HRESULT User_DirectDraw_Construct(IDirectDrawImpl *This, BOOL ex)
| DDFXCAPS_BLTSHRINKY | DDFXCAPS_BLTSHRINKXN \
| DDFXCAPS_BLTSTRETCHX | DDFXCAPS_BLTSTRETCHXN \
| DDFXCAPS_BLTSTRETCHY | DDFXCAPS_BLTSTRETCHYN)
This
->
caps
.
dwCaps
|=
DDCAPS_GDI
|
DDCAPS_PALETTE
|
BLIT_CAPS
/* Hack for D3D code */
|
DDCAPS_3D
;
This
->
caps
.
dwCaps
|=
DDCAPS_GDI
|
DDCAPS_PALETTE
|
BLIT_CAPS
;
#ifdef HAVE_OPENGL
/* Hack for D3D code */
This
->
caps
.
dwCaps
|=
DDCAPS_3D
;
#endif
/* HAVE_OPENGL */
This
->
caps
.
dwCaps2
|=
DDCAPS2_CERTIFIED
|
DDCAPS2_NOPAGELOCKREQUIRED
|
DDCAPS2_PRIMARYGAMMA
|
DDCAPS2_WIDESURFACES
;
This
->
caps
.
dwCKeyCaps
|=
CKEY_CAPS
;
...
...
@@ -193,8 +197,12 @@ HRESULT User_DirectDraw_Construct(IDirectDrawImpl *This, BOOL ex)
DDSCAPS_FLIP
|
DDSCAPS_FRONTBUFFER
|
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_PALETTE
|
DDSCAPS_PRIMARYSURFACE
|
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_VISIBLE
|
/* Hacks for D3D code */
DDSCAPS_3DDEVICE
|
DDSCAPS_MIPMAP
|
DDSCAPS_TEXTURE
|
DDSCAPS_ZBUFFER
;
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_VISIBLE
;
#ifdef HAVE_OPENGL
/* Hacks for D3D code */
This
->
caps
.
ddsCaps
.
dwCaps
|=
DDSCAPS_3DDEVICE
|
DDSCAPS_MIPMAP
|
DDSCAPS_TEXTURE
|
DDSCAPS_ZBUFFER
;
#endif
/* HAVE_OPENGL */
This
->
caps
.
ddsOldCaps
.
dwCaps
=
This
->
caps
.
ddsCaps
.
dwCaps
;
#undef BLIT_CAPS
#undef CKEY_CAPS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment