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
4671f86c
Commit
4671f86c
authored
Jul 06, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make the context parameter to the get_drawable_size() callback const.
parent
0a5b5608
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
device.c
dlls/wined3d/device.c
+3
-3
swapchain.c
dlls/wined3d/swapchain.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+4
-4
No files found.
dlls/wined3d/device.c
View file @
4671f86c
...
...
@@ -6185,16 +6185,16 @@ void device_invalidate_state(const struct wined3d_device *device, DWORD state)
}
}
void
get_drawable_size_fbo
(
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
void
get_drawable_size_fbo
(
const
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
{
/* The drawable size of a fbo target is the opengl texture size, which is the power of two size. */
*
width
=
context
->
current_rt
->
pow2Width
;
*
height
=
context
->
current_rt
->
pow2Height
;
}
void
get_drawable_size_backbuffer
(
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
void
get_drawable_size_backbuffer
(
const
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
{
struct
wined3d_swapchain
*
swapchain
=
context
->
swapchain
;
const
struct
wined3d_swapchain
*
swapchain
=
context
->
swapchain
;
/* The drawable size of a backbuffer / aux buffer offscreen target is the size of the
* current context's drawable, which is the size of the back buffer of the swapchain
* the active context belongs to. */
...
...
dlls/wined3d/swapchain.c
View file @
4671f86c
...
...
@@ -1190,7 +1190,7 @@ struct wined3d_context *swapchain_get_context(struct wined3d_swapchain *swapchai
return
swapchain_create_context
(
swapchain
);
}
void
get_drawable_size_swapchain
(
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
void
get_drawable_size_swapchain
(
const
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
{
/* The drawable size of an onscreen drawable is the surface size.
* (Actually: The window size, but the surface is created in window size) */
...
...
dlls/wined3d/wined3d_private.h
View file @
4671f86c
...
...
@@ -2011,7 +2011,7 @@ struct wined3d_surface
UINT
pow2Height
;
/* A method to retrieve the drawable size. Not in the Vtable to make it changeable */
void
(
*
get_drawable_size
)(
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
);
void
(
*
get_drawable_size
)(
const
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
);
/* PBO */
GLuint
pbo
;
...
...
@@ -2090,9 +2090,9 @@ void surface_upload_data(struct wined3d_surface *surface, const struct wined3d_g
const
struct
wined3d_format
*
format
,
const
RECT
*
src_rect
,
UINT
src_w
,
const
POINT
*
dst_point
,
BOOL
srgb
,
const
struct
wined3d_bo_address
*
data
)
DECLSPEC_HIDDEN
;
void
get_drawable_size_swapchain
(
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
DECLSPEC_HIDDEN
;
void
get_drawable_size_backbuffer
(
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
DECLSPEC_HIDDEN
;
void
get_drawable_size_fbo
(
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
DECLSPEC_HIDDEN
;
void
get_drawable_size_swapchain
(
const
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
DECLSPEC_HIDDEN
;
void
get_drawable_size_backbuffer
(
const
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
DECLSPEC_HIDDEN
;
void
get_drawable_size_fbo
(
const
struct
wined3d_context
*
context
,
UINT
*
width
,
UINT
*
height
)
DECLSPEC_HIDDEN
;
void
draw_textured_quad
(
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect
,
const
RECT
*
dst_rect
,
WINED3DTEXTUREFILTERTYPE
Filter
)
DECLSPEC_HIDDEN
;
...
...
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