mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
UI: Add option to draw safe areas in preview
This commit is contained in:
@@ -243,6 +243,13 @@ private:
|
||||
gs_vertbuffer_t *boxBottom = nullptr;
|
||||
gs_vertbuffer_t *circle = nullptr;
|
||||
|
||||
gs_vertbuffer_t *actionSafeMargin = nullptr;
|
||||
gs_vertbuffer_t *graphicsSafeMargin = nullptr;
|
||||
gs_vertbuffer_t *fourByThreeSafeMargin = nullptr;
|
||||
gs_vertbuffer_t *leftLine = nullptr;
|
||||
gs_vertbuffer_t *topLine = nullptr;
|
||||
gs_vertbuffer_t *rightLine = nullptr;
|
||||
|
||||
int previewX = 0, previewY = 0;
|
||||
int previewCX = 0, previewCY = 0;
|
||||
float previewScale = 0.0f;
|
||||
@@ -570,6 +577,9 @@ private:
|
||||
#endif
|
||||
void BroadcastButtonClicked();
|
||||
|
||||
void UpdatePreviewSafeAreas();
|
||||
bool drawSafeAreas = false;
|
||||
|
||||
public slots:
|
||||
void DeferSaveBegin();
|
||||
void DeferSaveEnd();
|
||||
|
||||
Reference in New Issue
Block a user