This commit is contained in:
Bryan Hoyle 2012-06-20 14:45:06 -04:00
commit c775126272

View File

@ -22,6 +22,18 @@ Thumbnail * SaveRenderer::Render(GameSave * save)
#ifndef OGLR
Thumbnail * tempThumb = NULL;
int width, height;
#ifdef OGLR
width = save->blockWidth*CELL;
height = save->blockHeight*CELL;
VideoBuffer buffer(width, height);
buffer.BlendCharacter((width/2)-3, (height/2)-5, 'x', 255, 255, 255, 255);
Thumbnail * tempThumb = new Thumbnail(0, 0, buffer.Buffer, ui::Point(width, height));
return tempThumb;
#else
width = save->blockWidth;
height = save->blockHeight;
@ -66,7 +78,7 @@ Thumbnail * SaveRenderer::Render(unsigned char * saveData, int dataSize)
//Todo: make this look a little less shit
VideoBuffer buffer(64, 64);
buffer.SetCharacter(32, 32, 'x', 255, 255, 255, 255);
buffer.BlendCharacter(32, 32, 'x', 255, 255, 255, 255);
Thumbnail * thumb = new Thumbnail(0, 0, buffer.Buffer, ui::Point(64, 64));