mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added support for scripts to determine word lists;
Added 'trim' and 'remove_tags' script functions; Simplified safety improvements of locale checker; Added 'is_targeted' function to magic game to replace the contains(..) calls git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@635 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -286,3 +286,15 @@ void RotatedDC::SetClippingRegion(const RealRect& rect) {
|
||||
void RotatedDC::DestroyClippingRegion() {
|
||||
dc.DestroyClippingRegion();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : Other
|
||||
|
||||
Bitmap RotatedDC::GetBackground(const RealRect& r) {
|
||||
wxRect wr = trNoNeg(r);
|
||||
Bitmap background(wr.width, wr.height);
|
||||
wxMemoryDC mdc;
|
||||
mdc.SelectObject(background);
|
||||
mdc.Blit(0, 0, wr.width, wr.height, &dc, wr.x, wr.y);
|
||||
mdc.SelectObject(wxNullBitmap);
|
||||
return background;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user