1. dos like colors
------=_NextPart_000_0007_01BFDF93.86BEC8E0
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
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?
------=_NextPart_000_0007_01BFDF93.86BEC8E0
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>dos programs have little different =
colors than=20
windows.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>if dos text editor, like es:cs, is run =
in dos mode,=20
it has different colors than if it is run in window-mode. it seems like =
there=20
are thin black horizontal lines drawn on the screen. in windows-mode =
colors are=20
totally clear.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>how can i achieve dos-kind of =
picture in=20
window program? cause i like it</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>do i have to draw thin black horizontal =
lines, i=20
dont think that would work</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>why is picture different in =
dos from the one=20
------=_NextPart_000_0007_01BFDF93.86BEC8E0--
2. 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
3. Re: dos like colors
> 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.
i cant see them if i lower the resoultion in windows to 640x480
why dos text mode, the same picture is also in quake1, and its not text
mode.
> 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.
do you know where on the net could i find that kind of program in whatever
language, maybe c. sure somebody has done it already. which keywords would
you use when searching for it?
> 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).
how do i do that?
how do i draw lines directly to bitmap and then draw that bitmap to dc.
i only know how to copy dc to bitmap, copy screen image to bitmap and back
but not directly to bitmap and then to screen.
is pixmap=bitmap?
regular line with width 1 would be to thick, i think