POV-Ray : Newsgroups : povray.windows : Ms Dev V4 compile.... : Re: Ms Dev V4 compile.... Server Time
28 Jul 2024 20:20:13 EDT (-0400)
  Re: Ms Dev V4 compile....  
From: Twyst
Date: 9 Dec 1997 05:50:29
Message: <348d23d5.0@news.povray.org>

<34843DEA.F5335EA0@REMOVE_THIS_TAG.filnet.fr>...
>Hi, all
>
>I'm new to this newsgroup.
>I have a little question for anyone kind enough to reply, ;-)
>
>I compiled  the latest web source files for PVengine for Windows.
>Everything goes fine, i get Pvengine to run, and render.
>(Win95-pentium166-32ram)
>
>Now the funny part :
>With the 'Release' version, everything goes fine, BUT, :-o
>the font of the filenames in the editor tabs
>(including the first tab : the 'Messages' one) get really screwed up !!!
>
>Like one single "chinese" character in the top-left corner of each tab.
>hugh..... :-(
>
>I saw a line about that in 'pvtext.c'
>
>// bug in Watcom 10.6 causes this to make the tabbed control's font go
>screwy. I don't know why.
>(refering to  a  '? : :'  macro that had to be replaced by a classic
>'if' statement.)
>
>Seems the same thing happens to me !
>Maybe there is more than this macro/if that can cause this little
>bug....
>The strange thing is that it doesn't occur with the debug version !! the
>tabs are correct.
>so i guess it's my compilers option, tried everything with no succes,
>always this same difference between the 'Debug' and 'Release'
>versions...
>


Well, I figured out the problem.. It seems there was a line missing from
pvtext.c:
the corrected code should read:

lf.lfHeight = -MulDiv (8, GetDeviceCaps (hDC, LOGPIXELSY), 72) ;
 lf.lfWidth = 4;                          //<---added this....
ReleaseDC (hwnd, hDC) ;

heh.. and to think,, I have NO clue what I'm doing! I'm in the process of
learning VC++!

Twyst================================
EFnet and NewNet #povray Channel Operator
Website: http://twyst.home.ml.org
E-Mail: twy### [at] v-wavecom
=====================================


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.