Mail Archives: djgpp/1998/10/25/20:42:11
From: | Ludvig Larsson <ludvig AT club-internet DOT fr>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Video mode question
|
Date: | Mon, 26 Oct 1998 02:33:06 +0100
|
Organization: | Faas-Goldhart
|
Lines: | 29
|
Message-ID: | <3633D152.B27@club-internet.fr>
|
References: | <36333E54 DOT A919B4AE AT yahoo DOT com>
|
NNTP-Posting-Host: | toulouse-camichel2-213.club-internet.fr
|
Mime-Version: | 1.0
|
X-Trace: | front5.grolier.fr 909367200 6456 194.158.122.213 (26 Oct 1998 02:00:00 GMT)
|
NNTP-Posting-Date: | 26 Oct 1998 02:00:00 GMT
|
X-Mailer: | Mozilla 3.01C-CLUB (Win95; I)
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
][v][]2. ][) wrote:
>
> Hi all.
>
> I have a question: let's say I fire up mode13h, I suppose the exact
> function doesn't really matter, and then try to print a string on screen
> using printf. How come I only see the string when I exit graphics mode
> again? Does it have something to do with that __djgpp_conventional_base
> stuff (my putpixel routine works just fine) ? And for that matter, would
> it explain why I don't get anything on screen when using a memcpy
> command?
>
> Jan-Jaap
a)
Well, the textscreen and the graphic screen doesn't work the same way, I
n text mode, each place where you can place a letter, space etc. is
represented by a byte. In graphics each pixel is represented by one or
several bytes(256 color and up), so when you'r writing an 'a' in up left
corner in textmode, you do the same thing as ploting a pixel on the up
left corner in gr-mode(more or less:).
If you want to write something on a graphic screen, you have more or
less put an image of the letter on screen.
b)
The memcopy works fine for me, send us the critical code that doesn't
work, and I'm sure someone can help you.
Ludvig Larsson
- Raw text -