SCI32: Non-titled text bitmap implementation
This implementation is not 100% engine accurate, but it is more accurate than what was there, and hopefully the differences between this and the engine code are merely cosmetic. The known (intentional) differences are: 1. Uses ScummVM rects inside the engine code, converting to/from SCI rects on the kernel edges and when scaling 2. Fewer side effects when performing operations that *should* have been pure from the start (like text dimension calculation). Still not side-effect-free, but at least things like colours and alignment do not need to be reset every time a measurement is taken, unlike in the actual engine. Editor controls and some other kBitmap code are temporarily disabled as a result of changes to GfxText32 until they can be updated to be engine-accurate.
This commit is contained in:
parent
2c81602454
commit
3e5adc33a8
9 changed files with 523 additions and 479 deletions
|
@ -178,11 +178,14 @@ void GfxControls32::kernelTexteditChange(reg_t controlObject) {
|
|||
// Write back string
|
||||
_segMan->strcpy(textReference, text.c_str());
|
||||
// Modify the buffer and show it
|
||||
warning("kernelTexteditChange");
|
||||
#if 0
|
||||
_text->createTextBitmap(controlObject, 0, 0, hunkId);
|
||||
|
||||
_text->drawTextBitmap(0, 0, nsRect, controlObject);
|
||||
//texteditCursorDraw(rect, text.c_str(), cursorPos); // TODO: Cursor
|
||||
g_system->updateScreen();
|
||||
#endif
|
||||
} else {
|
||||
// TODO: Cursor
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue