Skip to content

Commit

Permalink
Restore Delphi compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Jun 22, 2017
1 parent 1f361bd commit baf7cd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ http://www.mccauslandcenter.sc.edu/mricrogl/

##### Recent Versions

16-June-2017
21-June-2017
- Preferences window now allows user to enable optional support for MacOS retina resolution. Slower but better quality.
- [Screenshot fixes](http://www.nitrc.org/forum/message.php?msg_id=21504). Fix 'seams' when taking screenshots with high zoom factors, reduce blurriness of mosaic screenshots.
- New script commands "sharpen" and "bmpzoom" (described in manual).
- Better support for NRRD format images.

28-May-2017
- [Better thresholding of binary overlays](https://www.nitrc.org/forum/message.php?msg_id=19974).
Expand Down
8 changes: 4 additions & 4 deletions mainunit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,8 @@ function TGLForm1.ScreenShot(Zoom: integer): TBitmap;
begin
gRayCast.ScreenCapture := true;
GLBox.MakeCurrent;
w := GLBox.BackingWidth;
h := GLbox.BackingHeight;
w := GLBox.Width;
h := GLbox.Height;
wz := w*Zoom;
hz := h*Zoom;
Result:=TBitmap.Create;
Expand All @@ -992,7 +992,7 @@ function TGLForm1.ScreenShot(Zoom: integer): TBitmap;
for tile := 0 to ((Zoom * Zoom) - 1) do begin
tilex := (tile mod zoom) * w;
tiley := (tile div zoom) * h;
DisplayGLz(gTexture3D, Zoom, -tilex, -tiley);
DisplayGLz(gTexture3D, Zoom, -tilex, -tiley,0);
glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, @p[0]);
z := 0;
for y:=0 to h-1 do begin
Expand Down Expand Up @@ -2391,7 +2391,7 @@ procedure TGLForm1.About1Click(Sender: TObject);
{$IFDEF LCLCocoa}str := str + ' (Cocoa) '; {$ENDIF}
{$IFDEF LCLCarbon}str := str + ' (Carbon) '; {$ENDIF}
{$IFDEF DGL} str := str +' (DGL) '; {$ENDIF}//the DGL library has more dependencies - report this if incompatibilities are found
str := 'MRIcroGL '+str+' 16 June 2017'
str := 'MRIcroGL '+str+' 21 June 2017'
+kCR+' www.mricro.com :: BSD 2-Clause License (opensource.org/licenses/BSD-2-Clause)'
+kCR+' Dimensions '+inttostr(gTexture3D.NIFTIhdr.dim[1])+'x'+inttostr(gTexture3D.NIFTIhdr.dim[2])+'x'+inttostr(gTexture3D.NIFTIhdr.dim[3])
+kCR+' Bytes per voxel '+inttostr(gTexture3D.NIFTIhdr.bitpix div 8)
Expand Down

0 comments on commit baf7cd3

Please sign in to comment.