Преглед на файлове

Merge branch 'master' of https://github.com/vurtun/nuklear

vurtun преди 9 години
родител
ревизия
c39afae44b
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      nuklear.h

+ 2 - 2
nuklear.h

@@ -12563,7 +12563,7 @@ nk_do_scrollbarv(nk_flags *state,
     empty_north.x = scroll.x;
     empty_north.y = scroll.y;
     empty_north.w = scroll.w;
-    empty_north.h = cursor.x - scroll.w;
+    empty_north.h = cursor.y - scroll.y;
 
     empty_south.x = scroll.x;
     empty_south.y = cursor.y + cursor.h;
@@ -12651,7 +12651,7 @@ nk_do_scrollbarh(nk_flags *state,
     /* calculate empty space around cursor */
     empty_west.x = scroll.x;
     empty_west.y = scroll.y;
-    empty_west.w = cursor.y - scroll.y;
+    empty_west.w = cursor.x - scroll.x;
     empty_west.h = scroll.h;
 
     empty_east.x = cursor.x + cursor.w;