Browse Source

Fixed issue #902.

Branimir Karadžić 9 years ago
parent
commit
b49fb810ff
2 changed files with 2 additions and 2 deletions
  1. 1 1
      3rdparty/ocornut-imgui/widgets/gizmo.inl
  2. 1 1
      examples/20-nanovg/nanovg.cpp

+ 1 - 1
3rdparty/ocornut-imgui/widgets/gizmo.inl

@@ -1268,7 +1268,7 @@ namespace ImGuizmo
 		float validScale[3];
 		for (int i = 0; i < 3; i++)
 		{
-			if (fabsf(scale[i] < FLT_EPSILON))
+			if (fabsf(scale[i]) < FLT_EPSILON)
 				validScale[i] = 0.001f;
 			else
 				validScale[i] = scale[i];

+ 1 - 1
examples/20-nanovg/nanovg.cpp

@@ -570,7 +570,7 @@ void drawThumbnails(struct NVGcontext* vg, float x, float y, float w, float h, c
 			ix = -(iw-thumb)*0.5f;
 			iy = 0;
 		}
-		imgPaint = nvgImagePattern(vg, tx+ix, ty+iy, iw,ih, 0.0f/180.0f*NVG_PI, images[i], 0);
+		imgPaint = nvgImagePattern(vg, tx+ix, ty+iy, iw,ih, 0.0f/180.0f*NVG_PI, images[i], 1.0f);
 		nvgBeginPath(vg);
 		nvgRoundedRect(vg, tx,ty, thumb,thumb, 5);
 		nvgFillPaint(vg, imgPaint);