mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-07 13:53:17 +00:00
Fixed warning: conversion to 'uint32_t' from 'float' may alter its value
This commit is contained in:
@@ -146,7 +146,7 @@ static bool RPI_ShowCursor(SDL_Cursor *cursor)
|
||||
|
||||
if (curdata->element == DISPMANX_NO_HANDLE) {
|
||||
vc_dispmanx_rect_set(&src_rect, 0, 0, curdata->w << 16, curdata->h << 16);
|
||||
vc_dispmanx_rect_set(&dst_rect, mouse->x - curdata->hot_x, mouse->y - curdata->hot_y, curdata->w, curdata->h);
|
||||
vc_dispmanx_rect_set(&dst_rect, (int)mouse->x - curdata->hot_x, (int)mouse->y - curdata->hot_y, curdata->w, curdata->h);
|
||||
|
||||
update = vc_dispmanx_update_start(0);
|
||||
SDL_assert(update);
|
||||
|
||||
Reference in New Issue
Block a user