win-capture: Fix ptr -> int cast warnings (mingw)

master
jp9000 2015-02-08 16:11:51 -08:00
parent 2301a6f578
commit 04c54162b2
3 changed files with 4 additions and 4 deletions

View File

@ -1035,7 +1035,7 @@ static inline void game_capture_render_cursor(struct game_capture *gc)
!gc->global_hook_info->base_cy)
return;
ClientToScreen((HWND)gc->global_hook_info->window, &p);
ClientToScreen((HWND)(uintptr_t)gc->global_hook_info->window, &p);
float x_scale = (float)gc->global_hook_info->cx /
(float)gc->global_hook_info->base_cx;

View File

@ -430,7 +430,7 @@ static bool gl_shtex_init(HWND window)
}
if (!capture_init_shtex(&data.shtex_info, window,
data.base_cx, data.base_cy, data.cx, data.cy,
data.format, true, (uint32_t)data.handle)) {
data.format, true, (uintptr_t)data.handle)) {
return false;
}

View File

@ -591,7 +591,7 @@ bool capture_init_shtex(struct shtex_data **data, HWND window,
*data = shmem_info;
(*data)->tex_handle = (uint32_t)handle;
global_hook_info->window = (uint32_t)window;
global_hook_info->window = (uint32_t)(uintptr_t)window;
global_hook_info->type = CAPTURE_TYPE_TEXTURE;
global_hook_info->format = format;
global_hook_info->flip = flip;
@ -781,7 +781,7 @@ bool capture_init_shmem(struct shmem_data **data, HWND window,
(*data)->tex1_offset = (uint32_t)align_pos;
(*data)->tex2_offset = (*data)->tex1_offset + aligned_tex;
global_hook_info->window = (uint32_t)window;
global_hook_info->window = (uint32_t)(uintptr_t)window;
global_hook_info->type = CAPTURE_TYPE_MEMORY;
global_hook_info->format = format;
global_hook_info->flip = flip;