fix build warnings
This commit is contained in:
		| @@ -201,7 +201,7 @@ void Bar::renderTags() | |||||||
| 			tag.state & TagState::Active ? colorActive : colorInactive, | 			tag.state & TagState::Active ? colorActive : colorInactive, | ||||||
| 			tag.state & TagState::Urgent); | 			tag.state & TagState::Urgent); | ||||||
| 		renderComponent(tag.component); | 		renderComponent(tag.component); | ||||||
| 		auto indicators = std::min(tag.numClients, _bufs->height/2); | 		auto indicators = std::min(tag.numClients, static_cast<int>(_bufs->height/2)); | ||||||
| 		for (auto ind = 0; ind < indicators; ind++) { | 		for (auto ind = 0; ind < indicators; ind++) { | ||||||
| 			auto w = ind == tag.focusedClient ? 7 : 1; | 			auto w = ind == tag.focusedClient ? 7 : 1; | ||||||
| 			cairo_move_to(_painter, tag.component.x, ind*2+0.5); | 			cairo_move_to(_painter, tag.component.x, ind*2+0.5); | ||||||
|   | |||||||
| @@ -36,7 +36,7 @@ class ShmBuffer { | |||||||
| 	int _current {0}; | 	int _current {0}; | ||||||
| 	MemoryMapping _mapping; | 	MemoryMapping _mapping; | ||||||
| public: | public: | ||||||
| 	int width, height, stride; | 	uint32_t width, height, stride; | ||||||
|  |  | ||||||
| 	explicit ShmBuffer(int width, int height, wl_shm_format format); | 	explicit ShmBuffer(int width, int height, wl_shm_format format); | ||||||
| 	uint8_t* data(); | 	uint8_t* data(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user