mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@15885 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5f3d978442
commit
5d4811a721
1 changed files with 4 additions and 6 deletions
|
|
@ -8,10 +8,10 @@ struct MyApp : TopWindow {
|
|||
Vector<Vector<Tuple<double, Pointf>>> drawing;
|
||||
|
||||
PenInfo pen;
|
||||
|
||||
bool Pen(Point p, const PenInfo& pn, dword keyflags) override {
|
||||
|
||||
virtual bool Pen(Point p, const PenInfo& pn, dword keyflags) {
|
||||
if(keyflags & K_SHIFT)
|
||||
return false;
|
||||
return false; // let the message to be processed as mouse
|
||||
if(pn.pressure) {
|
||||
if((!!pn.pressure == !!pen.pressure) && drawing.GetCount())
|
||||
drawing.Top().Add(MakeTuple(pn.pressure, p));
|
||||
|
|
@ -30,9 +30,7 @@ struct MyApp : TopWindow {
|
|||
tracker.Track(Rect(p,p));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
virtual void Paint(Draw& w0) {
|
||||
DrawPainter w(w0, GetSize());
|
||||
w.Co();
|
||||
|
|
|
|||
Loading…
Reference in a new issue