Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
783b3236
Commit
783b3236
authored
May 17, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
May 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for device surface locking.
parent
9489f8bd
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
0 deletions
+16
-0
d3d_private.h
dlls/ddraw/d3d_private.h
+1
-0
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+0
-0
d3dexecutebuffer.c
dlls/ddraw/d3dexecutebuffer.c
+5
-0
ddraw_private.h
dlls/ddraw/ddraw_private.h
+2
-0
mesa_private.h
dlls/ddraw/mesa_private.h
+8
-0
No files found.
dlls/ddraw/d3d_private.h
View file @
783b3236
...
...
@@ -244,6 +244,7 @@ struct IDirect3DDeviceImpl
void
(
*
matrices_updated
)(
IDirect3DDeviceImpl
*
This
,
DWORD
matrices
);
void
(
*
set_matrices
)(
IDirect3DDeviceImpl
*
This
,
DWORD
matrices
,
D3DMATRIX
*
world_mat
,
D3DMATRIX
*
view_mat
,
D3DMATRIX
*
proj_mat
);
void
(
*
flush_to_framebuffer
)(
IDirect3DDeviceImpl
*
This
,
LPCRECT
pRect
);
STATEBLOCK
state_block
;
...
...
dlls/ddraw/d3ddevice/mesa.c
View file @
783b3236
This diff is collapsed.
Click to expand it.
dlls/ddraw/d3dexecutebuffer.c
View file @
783b3236
...
...
@@ -207,6 +207,11 @@ static void execute(IDirect3DExecuteBufferImpl *This,
ENTER_GL
();
if
(((
IDirect3DDeviceGLImpl
*
)
lpDevice
)
->
state
==
SURFACE_MEMORY
)
{
lpDevice
->
flush_to_framebuffer
(
lpDevice
,
NULL
);
}
((
IDirect3DDeviceGLImpl
*
)
lpDevice
)
->
state
=
SURFACE_GL
;
while
(
1
)
{
LPD3DINSTRUCTION
current
=
(
LPD3DINSTRUCTION
)
instr
;
BYTE
size
;
...
...
dlls/ddraw/ddraw_private.h
View file @
783b3236
...
...
@@ -303,6 +303,8 @@ struct IDirectDrawSurfaceImpl
IDirectDrawSurfaceImpl
*
mip_main
;
int
mipmap_level
;
LPVOID
tex_private
;
void
(
*
lock_update_prev
)(
IDirectDrawSurfaceImpl
*
This
,
LPCRECT
pRect
,
DWORD
dwFlags
);
void
(
*
unlock_update_prev
)(
IDirectDrawSurfaceImpl
*
This
,
LPCRECT
pRect
);
};
/*****************************************************************************
...
...
dlls/ddraw/mesa_private.h
View file @
783b3236
...
...
@@ -95,6 +95,11 @@ typedef enum {
GL_TRANSFORM_VERTEXBUFFER
}
GL_TRANSFORM_STATE
;
typedef
enum
{
SURFACE_GL
,
SURFACE_MEMORY
}
SURFACE_STATE
;
typedef
struct
IDirect3DDeviceGLImpl
{
struct
IDirect3DDeviceImpl
parent
;
...
...
@@ -111,6 +116,9 @@ typedef struct IDirect3DDeviceGLImpl
Display
*
display
;
Drawable
drawable
;
GLuint
unlock_tex
;
SURFACE_STATE
state
,
front_state
;
}
IDirect3DDeviceGLImpl
;
/* This is for the OpenGL additions... */
...
...
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