Re: dos like colors
On Mon, 26 Jun 2000 17:25:30 +0200, <tone.skoda at SIOL.NET> wrote:
>dos programs have little different colors than windows.
>if dos text editor, like es:cs, is run in dos mode, it has different
>colors than if it is run in window-mode. it seems like there are thin
>black horizontal lines drawn on the screen. in windows-mode colors are
>totally clear.
>
>how can i achieve dos-kind of picture in window program? cause i like it
>do i have to draw thin black horizontal lines, i dont think that would work
>
>why is picture different in dos from the one in windows?
Those black horizontal lines are the empty spaces between scan lines. You
don't usually see them in Windows because you're typically running in a
much higher resolution than DOS text mode. A higher resolution means less
space between scan lines; so much less that you can't even see them. You
can see them in windows if you lower your resolution to 640x480.
If you want this look in your high resolution Windows program, then you'll
have to emulate them. You can do this by doing what you suggested. Draw
your text to the window then draw evenly spaced horizontal lines through
it. You would have to make your font bigger so that the text is readable.
If I were doing this with win32lib, I would create a pixmap buffer, draw my
text on a black background, draw my emulated scanlines on top of that, then
blit the image into my window. You might even make a pixmap of the
emulated scanlines that you could blit on top of the text (this would use
more memory but it would be much faster).
-- Brian
|
Not Categorized, Please Help
|
|