tinyds: Fix server_view_at() 28/279828/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 16 Aug 2022 10:16:04 +0000 (19:16 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 18 Aug 2022 07:37:50 +0000 (16:37 +0900)
Change-Id: I522fde7fb5c82c29df22d74a524c75e6813cf839

examples/tinyds.c

index 0c2e3f0..dca4bac 100644 (file)
@@ -632,7 +632,7 @@ server_view_at(struct tinyds_server *server, double lx, double ly,
         x = view->x;
         y = view->y;
 
-        if (lx >= x && lx <= w && ly >= y && ly <= h) {
+        if (lx >= x && lx <= x + w && ly >= y && ly <= y + h) {
             if (sx)
                 *sx = lx - x;
             if (sy)