mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
Clean up codesniffer issues
This commit is contained in:
parent
476626b7b5
commit
f7d2be37ea
4 changed files with 4 additions and 9 deletions
|
|
@ -3,9 +3,6 @@
|
||||||
#define LABWC_LAB_SCENE_RECT_H
|
#define LABWC_LAB_SCENE_RECT_H
|
||||||
#include <wayland-server-core.h>
|
#include <wayland-server-core.h>
|
||||||
|
|
||||||
|
|
||||||
// Ensure we can access theme data to decide if we need bevels
|
|
||||||
extern struct rcxml rc;
|
|
||||||
struct wlr_scene_tree;
|
struct wlr_scene_tree;
|
||||||
|
|
||||||
struct lab_scene_rect_options {
|
struct lab_scene_rect_options {
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,6 @@
|
||||||
#define LAB_WLR_VERSION_AT_LEAST(major, minor, micro) \
|
#define LAB_WLR_VERSION_AT_LEAST(major, minor, micro) \
|
||||||
(WLR_VERSION_NUM >= (((major) << 16) | ((minor) << 8) | (micro)))
|
(WLR_VERSION_NUM >= (((major) << 16) | ((minor) << 8) | (micro)))
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PIXEL () - calculate pixel offset in an array of "bw" columns wide.
|
* PIXEL () - calculate pixel offset in an array of "bw" columns wide.
|
||||||
*
|
*
|
||||||
|
|
@ -73,7 +72,7 @@
|
||||||
* @param y y-coordinate
|
* @param y y-coordinate
|
||||||
* Assumes "bw" was defined externally
|
* Assumes "bw" was defined externally
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define PIXEL(x,y) (bw * y + x)
|
#define PIXEL(x, y) (bw * y + x)
|
||||||
|
|
||||||
#endif /* LABWC_MACROS_H */
|
#endif /* LABWC_MACROS_H */
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,8 @@ struct ssd {
|
||||||
struct ssd_border_subtree {
|
struct ssd_border_subtree {
|
||||||
struct wlr_scene_tree *tree;
|
struct wlr_scene_tree *tree;
|
||||||
struct wlr_scene_rect *top, *bottom, *left, *right;
|
struct wlr_scene_rect *top, *bottom, *left, *right;
|
||||||
struct wlr_scene_buffer *tlcorner, *trcorner, *blcorner, *brcorner, *ttexture, *btexture, *ltexture, *rtexture;
|
struct wlr_scene_buffer *tlcorner, *trcorner, *blcorner, *brcorner,
|
||||||
|
*ttexture, *btexture, *ltexture, *rtexture;
|
||||||
} subtrees[2]; /* indexed by enum ssd_active_state */
|
} subtrees[2]; /* indexed by enum ssd_active_state */
|
||||||
} border;
|
} border;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@
|
||||||
#include "common/scene-helpers.h"
|
#include "common/scene-helpers.h"
|
||||||
#include "common/macros.h"
|
#include "common/macros.h"
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "config/rcxml.h"
|
|
||||||
#include "theme.h"
|
|
||||||
|
|
||||||
struct border_scene {
|
struct border_scene {
|
||||||
struct wlr_scene_tree *tree;
|
struct wlr_scene_tree *tree;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue