View Issue Details

IDProjectCategoryView StatusLast Update
0003045FSSCPscriptingpublic2014-05-25 07:20
ReporterAxem Assigned Tom_m  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0003045: gr.drawImage()'s UV arguments aren't working properly
DescriptionTweaking the UV arguments in drawImage should let you horizontally or vertically flip the image, but something's broken somewhere. Copy paste the script below to see the problem.

0,0,1,1 is the default way and it works (top image)
1,1,0,0 or 0,0,-1,-1 result in odd colors (probably the image stretching)
Steps To Reproduce#Conditional Hooks
$Application: FS2_Open
 
 
$State: GS_STATE_MAIN_MENU
$On Frame:
[
 
        gr.drawImage("Ter0001", 100, 100, 100+gr.getImageWidth("Ter0001"), 100+gr.getImageHeight("Ter0001"), 0, 0, 1, 1)
        gr.drawImage("Ter0001", 100, 220, 100+gr.getImageWidth("Ter0001"), 220+gr.getImageHeight("Ter0001"), 1, 1, 0, 0)
       
]
 
#End
TagsNo tags attached.

Activities

m_m

2014-05-24 19:21

developer   ~0015761

Pull request for a fix is located here: https://github.com/scp-fs2open/fs2open.github.com/pull/29

m_m

2014-05-25 07:20

developer   ~0015762

Fix committed to trunk@10721.

Related Changesets

fs2open: trunk r10721

2014-05-25 02:35

m_m


Ported: N/A

Details Diff
Fix for Mantis 3045: gr.drawImage()'s UV arguments aren't working properly Affected Issues
0003045
mod - /trunk/fs2_open/code/graphics/tmapper.h Diff File
mod - /trunk/fs2_open/code/render/3ddraw.cpp Diff File

Issue History

Date Modified Username Field Change
2014-05-18 17:41 Axem New Issue
2014-05-24 19:21 m_m Note Added: 0015761
2014-05-24 19:21 m_m Assigned To => m_m
2014-05-24 19:21 m_m Status new => code review
2014-05-25 07:20 m_m Changeset attached => fs2open trunk r10721
2014-05-25 07:20 m_m Note Added: 0015762
2014-05-25 07:20 m_m Status code review => resolved
2014-05-25 07:20 m_m Resolution open => fixed