Merging
This commit is contained in:
commit
c775126272
@ -22,6 +22,18 @@ Thumbnail * SaveRenderer::Render(GameSave * save)
|
|||||||
#ifndef OGLR
|
#ifndef OGLR
|
||||||
Thumbnail * tempThumb = NULL;
|
Thumbnail * tempThumb = NULL;
|
||||||
int width, height;
|
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;
|
width = save->blockWidth;
|
||||||
height = save->blockHeight;
|
height = save->blockHeight;
|
||||||
|
|
||||||
@ -66,7 +78,7 @@ Thumbnail * SaveRenderer::Render(unsigned char * saveData, int dataSize)
|
|||||||
|
|
||||||
//Todo: make this look a little less shit
|
//Todo: make this look a little less shit
|
||||||
VideoBuffer buffer(64, 64);
|
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));
|
Thumbnail * thumb = new Thumbnail(0, 0, buffer.Buffer, ui::Point(64, 64));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user