UI: Add option to draw safe areas in preview

This commit is contained in:
Clayton Groeneveld
2021-08-20 15:20:59 -07:00
committed by Jim
parent 1b29bfc884
commit afd58a78e5
7 changed files with 165 additions and 92 deletions
+10
View File
@@ -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();