From 160e26c6d330369422deae033228b4a7151fe38f Mon Sep 17 00:00:00 2001 From: N2614 Date: Fri, 16 Mar 2012 06:02:13 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=90=E3=82=A4=E3=82=B9ID=E3=81=A8?= =?UTF-8?q?=E3=82=B7=E3=83=AA=E3=82=A2=E3=83=AB=E3=83=8A=E3=83=B3=E3=83=90?= =?UTF-8?q?=E3=83=BC=E3=82=92=E6=96=87=E5=AD=97=E3=81=A7=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@668 385bec56-5757-e545-9c3a-d8741f4650f1 --- trunk/ConsoleDataMigration/sources/common/QrImage.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/trunk/ConsoleDataMigration/sources/common/QrImage.cpp b/trunk/ConsoleDataMigration/sources/common/QrImage.cpp index cff397d..9436f49 100644 --- a/trunk/ConsoleDataMigration/sources/common/QrImage.cpp +++ b/trunk/ConsoleDataMigration/sources/common/QrImage.cpp @@ -16,6 +16,7 @@ #include "QrImage.h" #include "HeapManager.h" #include "Util.h" +#include #include @@ -40,12 +41,14 @@ void QrImage::Draw(demo::RenderSystemDrawing& renderSystem, bit64 deviceId, u8* renderSystem.SetRenderTarget(Util::GetRenderTarget(NN_GX_DISPLAY0, flip)); renderSystem.Clear(); - renderSystem.DrawText(0, 0, "DeviceId"); + std::string deviceIdString(deviceIdStr); + Util::SplitDeviceidWithSpace(deviceIdString); + renderSystem.DrawText(0, 0, "DeviceId = %s", deviceIdString.c_str()); DrawStringinQr(renderSystem, reinterpret_cast(deviceIdStr), Util::GetRenderTarget(NN_GX_DISPLAY0, flip)); renderSystem.SwapBuffers(); renderSystem.SetRenderTarget(Util::GetRenderTarget(NN_GX_DISPLAY1, flip)); renderSystem.Clear(); - renderSystem.DrawText(0, 0, "SerialNo."); + renderSystem.DrawText(0, 0, "SerialNo. = %s", serialNo); DrawStringinQr(renderSystem, serialNo, Util::GetRenderTarget(NN_GX_DISPLAY1, flip)); renderSystem.SwapBuffers(); }