From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro 3D functions - won't display on right half of the screen Date: Sun, 12 Sep 1999 11:26:11 -0500 Organization: Rose-Hulman Institute of Technology Lines: 20 Message-ID: <7rgkan$8vt$1@solomon.cs.rose-hulman.edu> References: <37DBC0DF DOT 7A5D AT ns DOT sympatico DOT ca> NNTP-Posting-Host: yerricde.laptop.rose-hulman.edu X-Trace: solomon.cs.rose-hulman.edu 937153687 9213 137.112.205.146 (12 Sep 1999 16:28:07 GMT) X-Complaints-To: news AT cs DOT rose-hulman DOT edu NNTP-Posting-Date: 12 Sep 1999 16:28:07 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Klaas wrote in message news:37DBC0DF DOT 7A5D AT ns DOT sympatico DOT ca... > I built a basic rotating cube demo with the allegro polygon and matrix > functions, but I have a problem. The cube displays as expected when in > 8bit color (cube in center of the screen). BUT, when I change NOTHING > else in the program besides the color depth (to 16), the "view area" > gets cuts in half - the cube is displayed 1/4 from the left edge of the > screen, and when I apply transformations to move the cube around, it > gets clipped at half the screen width. It looks like you are trying to draw to an 8-bit bitmap, then copy to a 16. Try set_color_depth() before you create_bitmap(). Damian Yerrick http://come.to/yerrick http://pineight.webjump.com