diff --git a/gfx/clip.h b/gfx/clip.h index a7563b81a..f4e1308c1 100644 --- a/gfx/clip.h +++ b/gfx/clip.h @@ -1,5 +1,5 @@ // LAF Gfx Library -// Copyright (C) 2020 Igara Studio S.A. +// Copyright (C) 2020-2024 Igara Studio S.A. // Copyright (C) 2001-2016 David Capello // // This file is released under the terms of the MIT license. @@ -34,6 +34,12 @@ namespace gfx { , size(w, h) { } + explicit ClipT(const SizeT& sz) + : dst(0, 0) + , src(0, 0) + , size(sz) { + } + ClipT(T dst_x, T dst_y, T src_x, T src_y, T w, T h) : dst(dst_x, dst_y) , src(src_x, src_y)