"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Pinta.Core/Extensions/GdkExtensions.cs" between
pinta-2.0.tar.gz and pinta-2.0.1.tar.gz

About: Pinta is a powerful image drawing and editing program (modeled after Paint.NET).

GdkExtensions.cs  (pinta-2.0):GdkExtensions.cs  (pinta-2.0.1)
skipping to change at line 138 skipping to change at line 138
/// Filters out all modifier keys except Ctrl/Shift/Alt. This pre vents Caps Lock, Num Lock, etc /// Filters out all modifier keys except Ctrl/Shift/Alt. This pre vents Caps Lock, Num Lock, etc
/// from appearing as active modifier keys. /// from appearing as active modifier keys.
/// </summary> /// </summary>
public static ModifierType FilterModifierKeys (this ModifierType current_state) public static ModifierType FilterModifierKeys (this ModifierType current_state)
{ {
var state = Gdk.ModifierType.None; var state = Gdk.ModifierType.None;
state |= (current_state & Gdk.ModifierType.ControlMask); state |= (current_state & Gdk.ModifierType.ControlMask);
state |= (current_state & Gdk.ModifierType.ShiftMask); state |= (current_state & Gdk.ModifierType.ShiftMask);
state |= (current_state & Gdk.ModifierType.Mod1Mask); state |= (current_state & Gdk.ModifierType.Mod1Mask);
state |= (current_state & Gdk.ModifierType.Mod2Mask); // if (PintaCore.System.OperatingSystem == OS.Mac) {
Command key on macOS. state |= (current_state & Gdk.ModifierType.Mod2Ma
sk); // Command key on macOS.
}
return state; return state;
} }
public static Cairo.PointD GetPoint (this EventButton ev) public static Cairo.PointD GetPoint (this EventButton ev)
{ {
return new Cairo.PointD (ev.X, ev.Y); return new Cairo.PointD (ev.X, ev.Y);
} }
/// <summary> /// <summary>
 End of changes. 1 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)