Aegisub/vsfilter/patchfiles/xy-shad-bord-bugfix1.patch
Niels Martin Hansen 65990cc0eb Update patch files as far as possible. Not everything is properly included.
csriapi.cpp is removed since the version a one dir up is the correct one, this one wasn't maintained.
These patch files were used as base for porting the patches to guliverkli2.

Originally committed to SVN as r2288.
2008-07-25 19:33:55 +00:00

43 lines
1 KiB
Diff

Index: C:/Users/jfs/Dev/Aegisub/vsfilter/subtitles/Rasterizer.cpp
===================================================================
--- C:/Users/jfs/Dev/Aegisub/vsfilter/subtitles/Rasterizer.cpp (revision 2281)
+++ C:/Users/jfs/Dev/Aegisub/vsfilter/subtitles/Rasterizer.cpp (revision 2282)
@@ -344,6 +344,7 @@
mOutline.clear();
mWideOutline.clear();
+ mWideBorder = 0;
// Determine bounding box
@@ -649,7 +650,9 @@
if(rx < 0) rx = 0;
if(ry < 0) ry = 0;
- if (ry > 0 && rx > 0)
+ mWideBorder = max(rx,ry);
+
+ if (ry > 0)
{
// Do a half circle.
// _OverlapRegion mirrors this so both halves are done.
@@ -657,8 +660,7 @@
{
int x = (int)(0.5 + sqrt(float(ry*ry - y*y)) * float(rx)/float(ry));
- // If x=0 nothing will be drawn for this overlap, not sure why
- _OverlapRegion(mWideOutline, mOutline, max(x,1), y);
+ _OverlapRegion(mWideOutline, mOutline, x, y);
}
}
else if (ry == 0 && rx > 0)
@@ -668,8 +670,6 @@
_OverlapRegion(mWideOutline, mOutline, rx, 0);
}
- mWideBorder = max(rx,ry);
-
return true;
}