Browse Source

correcting gamma for proper display

Jason Hancock 18 năm trước cách đây
mục cha
commit
c09217cd1c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      panda/src/osxdisplay/osxGraphicsStateGuardian.cxx

+ 2 - 0
panda/src/osxdisplay/osxGraphicsStateGuardian.cxx

@@ -407,6 +407,8 @@ static_set_gamma(float gamma) {
 	
 	short j, i;
 	short y[3];
+
+    gamma = (2 * gamma) + 1.0;
 	
 	y[0] = 256 * gamma;
 	y[1] = 256 * gamma;