User Tag List

Results 1 to 3 of 3

Thread: There is a problem with virtual height/width in CF2.5

  1. #1
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    There is a problem with virtual height/width in CF2.5

    Hey Clickteam, the BugTracker is off so I going to write it here... I reported that bug, a few years ago but you don't fix it yet. You should look at the code where u create virtual width/height because it doesn't work properly.... Now, Collins and scrolling in sub app don't work well so please fix it.

  2. #2
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Check this example
    Attached files Attached files

  3. #3
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    There is also problem with collision mask but I fixed it using own extension and this code:

    Code:
                   if ( rhPtr->rhFrame->m_dwColMaskBits != 0 )               {
                      ColMask_Kill (rdPtr->rHo.hoAdRunHeader->rhIdEditWin);
                      if ( rhPtr->rhFrame->m_hdr.leFlags & LEF_TOTALCOLMASK )
                               ColMask_CreateEx (rdPtr->rHo.hoAdRunHeader->rhIdEditWin, -COLMASK_XMARGIN, -COLMASK_YMARGIN, 
                           (rhPtr->rhFrame->m_hdr.leWidth+COLMASK_XMARGIN), (rhPtr->rhFrame->m_hdr.leHeight+COLMASK_YMARGIN), 
                            rhPtr->rhFrame->m_dwColMaskBits);
                      else
                            ColMask_Create (rdPtr->rHo.hoAdRunHeader->rhIdEditWin, COLMASK_XMARGIN, COLMASK_YMARGIN, rhPtr->rhFrame->m_dwColMaskBits);
                    }
    @edit:
    Full fix:
    Code:
                     int newWidth = myWidth;
                     int newHeight = myHeight; 
    
    
                    // Set new width/height
                     int nOldWidth = rhPtr->rhFrame->m_hdr.leWidth;
                     rhPtr->rhFrame->m_hdr.leWidth = newWidth;
                     int nOldHeight = rhPtr->rhFrame->m_hdr.leHeight;
                     rhPtr->rhFrame->m_hdr.leHeight = newHeight;
    
    
                    // Set virtual width
                    if ( nOldWidth == rhPtr->rhFrame->m_leVirtualRect.right )
                    {
                           rhPtr->rhFrame->m_leVirtualRect.right = rhPtr->rhLevelSx = newWidth;
    
    
                        rhPtr->rh3.rh3XMaximumKill=rhPtr->rhLevelSx+GAME_XBORDER;
                    }
    
    
                   // Set virtual height
                   if ( nOldHeight == rhPtr->rhFrame->m_leVirtualRect.bottom )
                   {
                         rhPtr->rhFrame->m_leVirtualRect.bottom = rhPtr->rhLevelSy = newHeight;
                         rhPtr->rh3.rh3YMaximumKill=rhPtr->rhLevelSy+GAME_YBORDER;
                   }
    
             if ( rhPtr->rhFrame->m_dwColMaskBits != 0 )               {
                      ColMask_Kill (rdPtr->rHo.hoAdRunHeader->rhIdEditWin);
                      if ( rhPtr->rhFrame->m_hdr.leFlags & LEF_TOTALCOLMASK )
                               ColMask_CreateEx (rdPtr->rHo.hoAdRunHeader->rhIdEditWin, -COLMASK_XMARGIN, -COLMASK_YMARGIN, 
                           (rhPtr->rhFrame->m_hdr.leWidth+COLMASK_XMARGIN), (rhPtr->rhFrame->m_hdr.leHeight+COLMASK_YMARGIN), 
                            rhPtr->rhFrame->m_dwColMaskBits);
                      else
                            ColMask_Create (rdPtr->rHo.hoAdRunHeader->rhIdEditWin, COLMASK_XMARGIN, COLMASK_YMARGIN, rhPtr->rhFrame->m_dwColMaskBits);
    Please fix it I don't want to include my own extension to each example that I do

Similar Threads

  1. Virtual Height/ Width
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 24
    Last Post: 6th February 2012, 11:36 PM
  2. Virtual Width And Height
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 31st May 2007, 03:18 PM
  3. Virtual Height and Width, what are they?
    By Durnus in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th September 2006, 05:05 PM
  4. Virtual Width/ Virtual Height Revisited
    By Donald in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th July 2006, 12:32 AM
  5. Changing Virtual Height and Virtual Width at run
    By Donald in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 13th July 2006, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •