HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #452

Ticket #452: libsdl-1.2-hg-resize.patch

File libsdl-1.2-hg-resize.patch, 1.2 KB (added by michaelvoliveira, 5 years ago)

Patch created

  • .cc/

    old new  
    381381} 
    382382 
    383383void SDL_BWin::DirectConnected(direct_buffer_info *info) { 
    384         switch (info->buffer_state & B_DIRECT_MODE_MASK) { 
    385                 case B_DIRECT_START: 
    386                 case B_DIRECT_MODIFY: 
    387                         { 
    388                                 int32 width = info->window_bounds.right - 
    389                                         info->window_bounds.left + 1; 
    390                                 int32 height = info->window_bounds.bottom - 
    391                                         info->window_bounds.top + 1; 
    392                                 SDL_PrivateResize(width, height); 
    393                                 break; 
    394                         } 
    395                 default: 
    396                         break; 
    397         } 
     384    switch (info->buffer_state & B_DIRECT_MODE_MASK) { 
     385        case B_DIRECT_START: 
     386        case B_DIRECT_MODIFY: 
     387            { 
     388                int32 width = info->window_bounds.right - 
     389                    info->window_bounds.left; 
     390                int32 height = info->window_bounds.bottom - 
     391                    info->window_bounds.top; 
     392                SDL_PrivateResize(width, height); 
     393                break; 
     394            } 
     395        default: 
     396            break; 
     397    } 
    398398} 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/