Docs: corrections, clarifications to code-comments

This commit is contained in:
Campbell Barton
2025-06-28 10:46:57 +10:00
parent 6253a33aa3
commit 5e927eae1b
3 changed files with 8 additions and 4 deletions

View File

@@ -925,7 +925,8 @@ extern GHOST_TSuccess GHOST_ClipRectangle(GHOST_RectangleHandle rectanglehandle,
/**
* Return the data from the clipboard
* \param selection: Boolean to return the selection instead, X11 only feature.
* \param selection: Boolean to return the selection instead.
* The capability flag: #GHOST_kCapabilityPrimaryClipboard can be used to check for supported.
* \return clipboard data
*/
extern char *GHOST_getClipboard(bool selection);

View File

@@ -445,8 +445,11 @@ class GHOST_ISystem {
***************************************************************************************/
/**
* Returns the selection buffer
* \return "unsigned char" from X11 XA_CUT_BUFFER0 buffer
* Return the clipboard buffer or null.
*
* \param selection: Use the "primary" selection.
* Check the #GHOST_kCapabilityPrimaryClipboard for backends that support this.
* \return Returns the clipboard data as a null terminated string or null when unavailable.
*/
virtual char *getClipboard(bool selection) const = 0;

View File

@@ -2741,7 +2741,7 @@ static wmOperatorStatus wm_userpref_read_exec(bContext *C, wmOperator *op)
BKE_callback_exec_null(bmain, BKE_CB_EVT_EXTENSION_REPOS_UPDATE_POST);
/* Needed to recalculate UI scaling values (eg, #UserDef.inv_dpi_fac). */
/* Needed to recalculate UI scaling values (eg, #UserDef.inv_scale_factor). */
wm_window_clear_drawable(static_cast<wmWindowManager *>(bmain->wm.first));
WM_event_add_notifier(C, NC_WINDOW, nullptr);