mirror of
https://github.com/reactos/reactos.git
synced 2024-11-28 05:53:31 +08:00
[WINESYNC] d3dx9: Make qsort() callback functions cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 08b569d50599328df1531f20cceb5331bf718524 by Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
30042a5211
commit
3ff51fd68e
@ -1212,7 +1212,7 @@ struct vertex_metadata {
|
||||
DWORD first_shared_index;
|
||||
};
|
||||
|
||||
static int compare_vertex_keys(const void *a, const void *b)
|
||||
static int __cdecl compare_vertex_keys(const void *a, const void *b)
|
||||
{
|
||||
const struct vertex_metadata *left = a;
|
||||
const struct vertex_metadata *right = b;
|
||||
@ -1590,7 +1590,7 @@ static void fill_attribute_table(DWORD *attrib_buffer, DWORD numfaces, void *ind
|
||||
attrib_table_size++;
|
||||
}
|
||||
|
||||
static int attrib_entry_compare(const void *a, const void *b)
|
||||
static int __cdecl attrib_entry_compare(const void *a, const void *b)
|
||||
{
|
||||
const DWORD *ptr_a = *(const DWORD **)a;
|
||||
const DWORD *ptr_b = *(const DWORD **)b;
|
||||
@ -5845,7 +5845,7 @@ static D3DXVECTOR2 *triangulation_get_next_point(struct triangulation *t, struct
|
||||
return &outline->items[i].pos;
|
||||
}
|
||||
|
||||
static int compare_vertex_indices(const void *a, const void *b)
|
||||
static int __cdecl compare_vertex_indices(const void *a, const void *b)
|
||||
{
|
||||
const struct point2d_index *idx1 = a, *idx2 = b;
|
||||
const D3DXVECTOR2 *p1 = &idx1->outline->items[idx1->vertex].pos;
|
||||
|
@ -650,7 +650,7 @@ static void append_pres_const_sets_for_shader_input(struct d3dx_const_tab *const
|
||||
}
|
||||
}
|
||||
|
||||
static int compare_const_set(const void *a, const void *b)
|
||||
static int __cdecl compare_const_set(const void *a, const void *b)
|
||||
{
|
||||
const struct d3dx_const_param_eval_output *r1 = a;
|
||||
const struct d3dx_const_param_eval_output *r2 = b;
|
||||
|
@ -15,4 +15,4 @@ files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, include/d3dx9anim.h: sdk/inc
|
||||
include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h,
|
||||
include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
|
||||
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h}
|
||||
tags: {wine: 15dd8e2b981ca32cae94409153627b3300bbeab8}
|
||||
tags: {wine: 08b569d50599328df1531f20cceb5331bf718524}
|
||||
|
Loading…
Reference in New Issue
Block a user