projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo: 'suposidly' -> 'supposedly'.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
target_scanline.cpp
diff --git
a/synfig-core/trunk/src/synfig/target_scanline.cpp
b/synfig-core/trunk/src/synfig/target_scanline.cpp
index
0272442
..
d4ba4ae
100644
(file)
--- a/
synfig-core/trunk/src/synfig/target_scanline.cpp
+++ b/
synfig-core/trunk/src/synfig/target_scanline.cpp
@@
-125,7
+125,7
@@
synfig::Target_Scanline::render(ProgressCallback *cb)
curr_frame_=0;
if( !init() ){
curr_frame_=0;
if( !init() ){
- if(cb) cb->error(_("Target initiali
s
ation failure"));
+ if(cb) cb->error(_("Target initiali
z
ation failure"));
return false;
}
return false;
}
@@
-203,6
+203,7
@@
synfig::Target_Scanline::render(ProgressCallback *cb)
Surface surface;
int rowheight = PIXEL_RENDERING_LIMIT/desc.get_w();
Surface surface;
int rowheight = PIXEL_RENDERING_LIMIT/desc.get_w();
+ if (!rowheight) rowheight = 1; // TODO: render partial lines to stay within the limit?
int rows = desc.get_h()/rowheight;
int lastrowheight = desc.get_h() - rows*rowheight;
int rows = desc.get_h()/rowheight;
int lastrowheight = desc.get_h() - rows*rowheight;
@@
-338,6
+339,7
@@
synfig::Target_Scanline::render(ProgressCallback *cb)
Surface surface;
int totalheight = desc.get_h();
int rowheight = PIXEL_RENDERING_LIMIT/desc.get_w();
Surface surface;
int totalheight = desc.get_h();
int rowheight = PIXEL_RENDERING_LIMIT/desc.get_w();
+ if (!rowheight) rowheight = 1; // TODO: render partial lines to stay within the limit?
int rows = desc.get_h()/rowheight;
int lastrowheight = desc.get_h() - rows*rowheight;
int rows = desc.get_h()/rowheight;
int lastrowheight = desc.get_h() - rows*rowheight;