mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 14:07:01 -04:00
(minor)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1610 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+2
-2
@@ -61,8 +61,8 @@
|
|||||||
inline bool matches(const String& str) const {
|
inline bool matches(const String& str) const {
|
||||||
return regex_search(str.begin(), str.end(), regex);
|
return regex_search(str.begin(), str.end(), regex);
|
||||||
}
|
}
|
||||||
inline bool matches(Results& results, const String& str) const {
|
inline bool matches(Results& results, const String& str, size_t start = 0) const {
|
||||||
return matches(results, str.begin(), str.end());
|
return matches(results, str.begin() + start, str.end());
|
||||||
}
|
}
|
||||||
inline bool matches(Results& results, const String::const_iterator& begin, const String::const_iterator& end) const {
|
inline bool matches(Results& results, const String::const_iterator& begin, const String::const_iterator& end) const {
|
||||||
return regex_search(begin, end, results, regex);
|
return regex_search(begin, end, results, regex);
|
||||||
|
|||||||
@@ -75,9 +75,9 @@ RealSize Rotation::trSizeToBB(const RealSize& size) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
RealRect Rotation::trRectToBB(const RealRect& r) const {
|
RealRect Rotation::trRectToBB(const RealRect& r) const {
|
||||||
|
const bool special_case_optimization = false;
|
||||||
double x = r.x * zoomX, y = r.y * zoomY;
|
double x = r.x * zoomX, y = r.y * zoomY;
|
||||||
double w = r.width * zoomX, h = r.height * zoomY;
|
double w = r.width * zoomX, h = r.height * zoomY;
|
||||||
const bool special_case_optimization = false;
|
|
||||||
if (special_case_optimization && is_rad0(angle)) {
|
if (special_case_optimization && is_rad0(angle)) {
|
||||||
return RealRect(origin.x + x, origin.y + y, w, h);
|
return RealRect(origin.x + x, origin.y + y, w, h);
|
||||||
} else if (special_case_optimization && is_rad180(angle)) {
|
} else if (special_case_optimization && is_rad180(angle)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user