now i can do proper screenshot :)
This commit is contained in:
parent
dd5154e5db
commit
8f988cdf6a
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ void DriverTinyGL::destroyTextBitmap(TextObjectHandle *handle) {
|
||||||
|
|
||||||
Bitmap *DriverTinyGL::getScreenshot(int w, int h) {
|
Bitmap *DriverTinyGL::getScreenshot(int w, int h) {
|
||||||
uint16 *buffer = new uint16[w * h];
|
uint16 *buffer = new uint16[w * h];
|
||||||
uint16 *src = (uint16 *)_zb->pbuf;
|
uint16 *src = (uint16 *)_storedDisplay;
|
||||||
assert(buffer);
|
assert(buffer);
|
||||||
|
|
||||||
float step_x = 640.0 / w;
|
float step_x = 640.0 / w;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue