View Issue Details

IDProjectCategoryView StatusLast Update
0004489Multi Theft Auto : San AndreasScriptingpublic2009-06-23 10:22
ReporterXeonAssigned Toccw 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version1.0 
Summary0004489: DX drawing order fail
Description

I can't seem to be able to draw a dxDrawLine over a dxDrawImage. The order of my function calls doesn't matter, the image is always drawn over the line.

TagsNo tags attached.

Activities

Xeon

2009-06-21 23:33

viewer   ~~0009665

Here is the code I am using:
screenWidth, screenHeight = guiGetScreenSize()
dxDrawImage(screenWidth / 2, screenHeight / 2, 128, 128, "data/airspeed_indicator.png")
dxDrawLine(0, 0, screenWidth, screenHeight, tocolor(255, 255, 255), 5)

Talidan

2009-06-21 23:46

administrator   ~~0009666

You'll probably have to use the postGUI parameter for now.

Xeon

2009-06-21 23:46

viewer   ~~0009667

Does that mean this is confirmed by others?

Jax

2009-06-22 13:00

administrator   ~~0009671

They're rendered in the right order, but for some reason images are drawn above lines, probably some depth value.
If images arent drawn above everything it's down to the line drawing code.

ccw

2009-06-23 04:03

administrator   ~~0009687

Fixed in r1141

Issue History

Date Modified Username Field Change