Hydrogenaudio Forums

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: kdx on 2005-02-01 20:13:14

Title: uTextOutColorsTabbed
Post by: kdx on 2005-02-01 20:13:14
My problem is that the function seems to always want to start the text at the left border of the destination DC, regardless of the 'left'-member of the item-RECT, which only clips the text away. The only way I found to move the text to the right is to set the border-parameter - but this also makes a border between the columns as i just discovered.

So is there any way to put the text where i want it or do i have to write my own function for this ?
Title: uTextOutColorsTabbed
Post by: foosion on 2005-02-01 20:24:10
This is indeed a bug in utf8api.dll; I stumbled upon this and another related bug some time ago. You need to apply this patch (http://www.stud.uni-karlsruhe.de/~uzbs/fb2k/text_drawing.cpp.patch) to text_drawing.cpp. You will need to ship the patched version of utf8api.dll with your component, at least for the current version of foobar2000. I have already sent the patch to zZzZzZz, so it will be included in future releases.
Title: uTextOutColorsTabbed
Post by: kdx on 2005-02-01 21:50:01
thanks a lot
Title: uTextOutColorsTabbed
Post by: Phi on 2005-02-02 00:05:23
Hrmmm... I noticed this too but just figured it was the way it was intended to work. 
Oh well, turned out DrawTextEx was what I really wanted anyway.
SimplePortal 1.0.0 RC1 © 2008-2020