Add install for nost-pack

This commit is contained in:
Gary Talent 2017-04-13 05:20:21 -05:00
parent e8b7d45cfa
commit aaa870a2e9
2 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,13 @@ target_link_libraries(
NostalgiaCore
)
install(
TARGETS
nost-pack
RUNTIME DESTINATION
bin
)
set(CMAKE_INCLUDE_CURRENT_DIR OFF)
set(CMAKE_AUTOMOC OFF)

View File

@ -64,7 +64,7 @@ int run(ClArgs args) {
auto compact = args.getBool("c");
QMap<QRgb, int> colors;
QImage src(inPath);
const auto imgDataBuffSize = sizeof(Pallete) + src.width() * src.height();
const auto imgDataBuffSize = sizeof(Pallete) - 1 + src.width() * src.height();
uint8_t imgDataBuff[imgDataBuffSize];
GbaImageData *id = (GbaImageData*) imgDataBuff;
int colorId = 0;