mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-01 13:56:06 -04:00
Affine2D: Remove * operator, it's unused.
RendererBase: Add ComputeCamera() as a virtual function. Add strips parameter to TotalIterCount(). Renderer: Implement ComputeCamera() as an override. SpatialFilter: Ensure filters that are too small are made large enough to create. FinalRenderDialog: Add estimated iters table row and populate on all UI updates. FractoriumParams: Zoom was not being saved, loaded. Fixed. GLWidget: Prevent mouse wheel event from being passed to the scroll bars. It should only affect the scale.
This commit is contained in:
@ -262,8 +262,7 @@ bool EmberRender(EmberOptions& opt)
|
||||
|
||||
//TotalIterCount() is actually using ScaledQuality() which does not get reset upon ember assignment,
|
||||
//so it ends up using the correct value for quality * strips.
|
||||
writeSuccess = false;
|
||||
iterCount = renderer->TotalIterCount();
|
||||
iterCount = renderer->TotalIterCount(1);
|
||||
comments = renderer->ImageComments(stats, opt.PrintEditDepth(), opt.IntPalette(), opt.HexPalette());
|
||||
os.str("");
|
||||
os << comments.m_NumIters << " / " << iterCount << " (" << std::fixed << std::setprecision(2) << (((double)stats.m_Iters / (double)iterCount) * 100) << "%)";
|
||||
@ -286,6 +285,8 @@ bool EmberRender(EmberOptions& opt)
|
||||
finalImagep = finalImage.data();
|
||||
}
|
||||
|
||||
writeSuccess = false;
|
||||
|
||||
if (opt.Format() == "png")
|
||||
writeSuccess = WritePng(filename.c_str(), finalImagep, finalEmber.m_FinalRasW, finalEmber.m_FinalRasH, opt.BitsPerChannel() / 8, opt.PngComments(), comments, opt.Id(), opt.Url(), opt.Nick());
|
||||
else if (opt.Format() == "jpg")
|
||||
|
Reference in New Issue
Block a user