You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.1KB

  1. --- ../Rack/dep/oui-blendish/blendish.c 2022-09-21 19:49:29.973066921 +0100
  2. +++ blendish.c 2022-09-21 19:41:45.883648777 +0100
  3. @@ -61,7 +61,7 @@
  4. }
  5. #else
  6. - #define BND_INLINE inline
  7. + #define BND_INLINE static inline
  8. #define bnd_fminf(a, b) fminf(a, b)
  9. #define bnd_fmaxf(a, b) fmaxf(a, b)
  10. #define bnd_fmin(a, b) fmin(a, b)
  11. @@ -1061,7 +1061,7 @@
  12. // search horizontal position
  13. static NVGglyphPosition glyphs[BND_MAX_GLYPHS];
  14. int nglyphs = nvgTextGlyphPositions(
  15. - ctx, x, y, rows[row].start, rows[row].end + 1, glyphs, BND_MAX_GLYPHS);
  16. + ctx, x, y, rows[row].start, rows[row].end, glyphs, BND_MAX_GLYPHS);
  17. int col, p = 0;
  18. for (col = 0; col < nglyphs && glyphs[col].x < px; ++col)
  19. p = glyphs[col].str - label;
  20. @@ -1083,7 +1083,7 @@
  21. if (nrows == 0) return;
  22. *cx = rows[r].minx;
  23. nglyphs = nvgTextGlyphPositions(
  24. - ctx, x, y, rows[r].start, rows[r].end+1, glyphs, BND_MAX_GLYPHS);
  25. + ctx, x, y, rows[r].start, rows[r].end, glyphs, BND_MAX_GLYPHS);
  26. for (int i=0; i < nglyphs; ++i) {
  27. *cx=glyphs[i].x;
  28. if (glyphs[i].str == caret) break;