From: "helionb" Newsgroups: comp.os.msdos.djgpp Subject: getpal problem! Date: Sat, 8 Jul 2000 13:15:04 -0700 Organization: TTnet News Server Lines: 16 Message-ID: <8k7p95$6f127@baran22.ttnet.net.tr> NNTP-Posting-Host: 212.252.198.95 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am coding mode 13h, and I have problems with getpal. which is code void getpal(byte colno,byte &r,byte &g,byte &b) { outp(0x03c8,colno), r=inp(0x03c9); g=inp(0x03c9); b=inp(0x03c9); } but when I take pal bye this source I can recall it it was wrong .. Can anyone tell me what is wrong ?