[Scummvm-devel] Idea for debug feature: Borders around blitted rectangles

Eugene Sandulenko sev at scummvm.org
Tue Nov 13 22:03:41 CET 2007


On Tue, 13 Nov 2007 21:55:23 +0200
Ori Avtalion <oavtal at bezeqint.net> wrote:

> Any objections / suggestions?
The idea itself is not so bad, but I see no way how it will actually
help with debugging. I.e. how would you know which part of the engine
drew this or that rectangle.

> And, of course, what color should the lines be?
> If an engine defines itself to be based on a color palette, is it
> still possible to have a single color consistently appearing in all
> engines?
Well, at least SDL backend works in 16bpp internally, so if you would
add line drawing _after_ 8->16 transformation and even after scalers
being applied, that would work. Otherwise no, there is no way to
guarantee that some particular indexed color will be visible.


Eugene




More information about the Scummvm-devel mailing list