Commit 60825c6c authored by mercury233's avatar mercury233

format

parent e673099b
......@@ -443,8 +443,8 @@ CGUITTGlyphPage* CGUITTFont::createGlyphPage(const u8& pixel_mode) {
if (page_texture_size.Width > max_texture_size.Width || page_texture_size.Height > max_texture_size.Height)
page_texture_size = max_texture_size;
page->texture_size = page_texture_size;
page->pixel_mode = pixel_mode;
page->texture_size = page_texture_size;
page->pixel_mode = pixel_mode;
if (page) {
// Determine the number of glyph slots on the page and add it to the list of pages.
......
......@@ -143,12 +143,11 @@ public:
void updateTexture() {
if (!dirty) return;
if (!texture)
{
if (!texture) {
if (!createPageTexture(pixel_mode, texture_size))
// TODO: add error message?
return;
}
}
void* ptr = texture->lock();
video::ECOLOR_FORMAT format = texture->getColorFormat();
......
......@@ -224,11 +224,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
mainGame->env->addMessageBox(L"", dataManager.GetSysString(1410));
break;
}
// clear imgCard
mainGame->imgCard->setImage(imageManager.tCover[0]);
// send result to server
mainGame->imgCard->setImage(imageManager.tCover[0]);
char deckbuf[1024];
char* pdeck = deckbuf;
BufferIO::WriteInt32(pdeck, deckManager.current_deck.main.size() + deckManager.current_deck.extra.size());
......
......@@ -14,7 +14,7 @@
#include <dirent.h>
#endif
const unsigned short PRO_VERSION = 0x133D;
const unsigned short PRO_VERSION = 0x233C;
namespace ygo {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment