Cleanup: use C-style comments, add missing doxy section

This commit is contained in:
2022-06-09 21:31:08 +10:00
parent ed15900473
commit 41c7c744eb
4 changed files with 18 additions and 10 deletions

View File

@@ -71,7 +71,7 @@ struct cursor_t {
struct wl_cursor_theme *theme = nullptr;
int size;
std::string theme_name;
// outputs on which the cursor is visible
/** Outputs on which the cursor is visible. */
std::unordered_set<const output_t *> outputs;
int scale = 1;
};
@@ -121,11 +121,11 @@ struct input_t {
struct xkb_context *xkb_context;
struct xkb_state *xkb_state;
struct {
/* Key repetition in character per second. */
/** Key repetition in character per second. */
int32_t rate;
/* Time (milliseconds) after which to start repeating keys. */
/** Time (milliseconds) after which to start repeating keys. */
int32_t delay;
/* Timer for key repeats. */
/** Timer for key repeats. */
GHOST_ITimerTask *timer = nullptr;
} key_repeat;
@@ -133,8 +133,10 @@ struct input_t {
struct wl_surface *focus_keyboard = nullptr;
struct wl_data_device *data_device = nullptr;
struct data_offer_t *data_offer_dnd; /* Drag & Drop. */
struct data_offer_t *data_offer_copy_paste; /* Copy & Paste. */
/** Drag & Drop. */
struct data_offer_t *data_offer_dnd;
/** Copy & Paste. */
struct data_offer_t *data_offer_copy_paste;
struct data_source_t *data_source;
};
@@ -828,7 +830,7 @@ static const struct wl_data_device_listener data_device_listener = {
/** \} */
/* -------------------------------------------------------------------- */
/** \name Listener (Pointer), #wl_pointer_listener
/** \name Listener (Surface), #wl_surface_listener
* \{ */
static void cursor_buffer_release(void *data, struct wl_buffer *wl_buffer)
@@ -911,6 +913,12 @@ struct wl_surface_listener cursor_surface_listener = {
cursor_surface_leave,
};
/** \} */
/* -------------------------------------------------------------------- */
/** \name Listener (Pointer), #wl_pointer_listener
* \{ */
static void pointer_enter(void *data,
struct wl_pointer * /*wl_pointer*/,
uint32_t serial,

View File

@@ -5,7 +5,7 @@ void main()
float dist_squared = dot(centered, centered);
const float rad_squared = 0.25;
// round point with jaggy edges
/* Round point with jaggy edges. */
if (dist_squared > rad_squared) {
discard;
}

View File

@@ -5,7 +5,7 @@ void main()
float dist_squared = dot(centered, centered);
const float rad_squared = 0.25;
// round point with jaggy edges
/* Round point with jaggy edges. */
if (dist_squared > rad_squared) {
discard;
}

View File

@@ -111,7 +111,7 @@ class obj_importer_test : public BlendfileLoadingBaseTest {
int endpoint = (nurb->flagu & CU_NURB_ENDPOINT) ? 1 : 0;
EXPECT_EQ(nurb->orderu, exp.mesh_totpoly_or_curve_order);
EXPECT_EQ(endpoint, exp.mesh_totedge_or_curve_endp);
// Cyclic flag is not set by the importer yet
/* Cyclic flag is not set by the importer yet. */
// int cyclic = (nurb->flagu & CU_NURB_CYCLIC) ? 1 : 0;
// EXPECT_EQ(cyclic, exp.mesh_totloop_or_curve_cyclic);
}