www.delorie.com/archives/browse.cgi | search |
From: | Ingo Stierand <stierand AT informatik DOT uni-hildesheim DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Allocating and using memory with the dpmi functions |
Date: | Mon, 30 Dec 1996 11:08:55 +0100 |
Organization: | Universitaet Hildesheim, Germany |
Lines: | 15 |
Message-ID: | <32C794B7.41C67EA6@informatik.uni-hildesheim.de> |
References: | <19961224 DOT 063720 DOT 8439 DOT 1 DOT aclemmer AT juno DOT com> |
NNTP-Posting-Host: | iris.informatik.uni-hildesheim.de |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hello, Aaron m Clemmer wrote: > // dividing the number of bits-per-pixel by 8 gives you bytes per > pixel... so I allocate I don't know if this is the problem, but this is not true for all modes. > buffer.size = info->xRes * info->yRes * (info->bitsPerPixel/8); When you use a 4-bit mode for example you will get (info->bitsPerPixel/8) = 4/8 = 0 I hope this will help. Ingo
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |