mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added new sort options for special rarity
Added "sort script" field BUG: Dependencies are not correctly updated for collection sorting, so card numbers don't update properly. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@546 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -50,7 +50,7 @@ typedef shared_ptr<wxMemoryDC> MemoryDCP;
|
||||
// Return a temporary DC with the same size as the parameter
|
||||
MemoryDCP getTempDC(DC& dc) {
|
||||
wxSize s = dc.GetSize();
|
||||
Bitmap buffer(s.GetWidth(), s.GetHeight(), 1);
|
||||
Bitmap buffer(s.GetWidth(), s.GetHeight(), 24);
|
||||
MemoryDCP newDC(new wxMemoryDC);
|
||||
newDC->SelectObject(buffer);
|
||||
clearDC(*newDC, *wxBLACK_BRUSH);
|
||||
@@ -161,10 +161,10 @@ void SymbolViewer::combineSymbolPart(DC& dc, const SymbolPart& part, bool& paint
|
||||
// Matrix2D rot(cos(a),-sin(a), sin(a),cos(a));
|
||||
//
|
||||
// ref * rot
|
||||
// /cos b sin b\ /cos a -sin a\
|
||||
// = \sin b -cos b/ \sin a cos a/
|
||||
// = /cos(a+b) sin(a+b)\
|
||||
// \sin(a+b) -cos(a+b)/
|
||||
// /cos b sin b\ /cos a -sin a\;
|
||||
// = \sin b -cos b/ \sin a cos a/;s
|
||||
// = /cos(a+b) sin(a+b)\;
|
||||
// \sin(a+b) -cos(a+b)/;
|
||||
Matrix2D rot(cos(a+b),sin(a+b), sin(a+b),-cos(a+b));
|
||||
multiply.mx = rot.mx * old_m;
|
||||
multiply.my = rot.my * old_m;
|
||||
|
||||
Reference in New Issue
Block a user