diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-08-31 22:39:04 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-08 02:27:08 +0000 |
commit | fef4481bfec74ea20e3c78cedd657977cac16434 (patch) | |
tree | 8f130f065e0ffcaf2ce411797f3f16032ee66ce3 /options/m_option.h | |
parent | b47a58516af2c36e66c3987748b5b4a1275ed9e7 (diff) | |
download | mpv-fef4481bfec74ea20e3c78cedd657977cac16434.tar.bz2 mpv-fef4481bfec74ea20e3c78cedd657977cac16434.tar.xz |
m_option: make m_rect_apply center based
This makes it easier to apply crops without need to manually calc the
offset. I wanted for it to be top-left corner based, but maybe it was
not that good idea in retrospect.
Also rename scrw/scrh, since they don't refer to screen. It was copied
form m_geometry apply.
Diffstat (limited to 'options/m_option.h')
-rw-r--r-- | options/m_option.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_option.h b/options/m_option.h index 0683822988..3e86485930 100644 --- a/options/m_option.h +++ b/options/m_option.h @@ -105,7 +105,7 @@ struct m_geometry { void m_geometry_apply(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh, struct m_geometry *gm); -void m_rect_apply(struct mp_rect *rc, int scrw, int scrh, struct m_geometry *gm); +void m_rect_apply(struct mp_rect *rc, int w, int h, struct m_geometry *gm); struct m_channels { bool set : 1; |