mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 03:14:34 +01:00
Font rendering code runs but it sure ain't right
This commit is contained in:
1 parent
d9c43642c2
commit
0bf92a4fa2
3 files changed
+9
-3
No files matched your search
@@ -135,7 +135,10 @@ void TextDrawerAndroid::DrawString(DrawBuffer &target, const char *str, float x,
|
||||
jshort* jimage = env_->GetShortArrayElements(imageData, nullptr);
|
||||
for (int x = 0; x < entry->bmWidth; x++) {
|
||||
for (int y = 0; y < entry->bmHeight; y++) {
|
||||
bitmapData[entry->bmWidth * y + x] = jimage[imageWidth * y + x];
|
||||
int v = jimage[imageWidth * y + x];
|
||||
v = (v << 4) | v;
|
||||
v = (v << 8) | v;
|
||||
bitmapData[entry->bmWidth * y + x] = v;
|
||||
}
|
||||
}
|
||||
env_->ReleaseShortArrayElements(imageData, jimage, 0);
|
||||
|
||||
Reference in new issue
Block a user