Rename Image class to Label
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "graphics/Bitmap.hpp"
|
||||
#include "graphics/Image.hpp"
|
||||
#include "graphics/Label.hpp"
|
||||
#include "graphics/Monochrome.hpp"
|
||||
#include "libusb.h"
|
||||
#include "libusbwrap/LibUsbTypes.hpp"
|
||||
@@ -125,7 +125,7 @@ bool P700Printer::detachUsbDevice() {
|
||||
bool P700Printer::printBitmap(const graphics::Bitmap<graphics::ALPHA8>& bitmap) {
|
||||
auto bm = graphics::Bitmap<graphics::ALPHA8>(512, 128);
|
||||
{
|
||||
auto img = graphics::Image();
|
||||
auto img = graphics::Label();
|
||||
bm.setPixels(std::vector<uint8_t>(img.getRaw(), img.getRaw() + 512 * 128));
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ bool P700Printer::send(std::vector<uint8_t>& data) {
|
||||
}
|
||||
#else
|
||||
tx = data.size();
|
||||
spdlog::debug("USB raw data(len {}): {}", data.size(), spdlog::to_hex(data));
|
||||
SPDLOG_DEBUG("USB raw data(len {}): {}", data.size(), spdlog::to_hex(data));
|
||||
#endif
|
||||
|
||||
if (tx != static_cast<int>(data.size())) {
|
||||
|
Reference in New Issue
Block a user