mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
x11display: fix compile warnings
This commit is contained in:
parent
4c3b6fcc03
commit
8bb9abfbb0
@ -371,13 +371,13 @@ find_fullscreen_crtc(const LPoint2i &point,
|
||||
for (int i = 0; i < res->ncrtc; ++i) {
|
||||
RRCrtc crtc = res->crtcs[i];
|
||||
if (auto info = get_crtc_info(res.get(), crtc)) {
|
||||
if (point[0] >= info->x && point[0] < info->x + info->width &&
|
||||
point[1] >= info->y && point[1] < info->y + info->height) {
|
||||
if (point[0] >= info->x && point[0] < info->x + (int)info->width &&
|
||||
point[1] >= info->y && point[1] < info->y + (int)info->height) {
|
||||
|
||||
x = info->x;
|
||||
y = info->y;
|
||||
width = info->width;
|
||||
height = info->height;
|
||||
width = (int)info->width;
|
||||
height = (int)info->height;
|
||||
return crtc;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user