Amigans Defender   
                                     
                     
                                 
                                    
                    
                         
                    
                        Joined: 2006/11/17 22:40 Last Login
                                : Today 22:48 
                                                    From England 
                                                                            Group:
                                  Registered Users  Moderators                             
                                                
                                                                            
                                             
                                     | 
        
                         @orgin
  Which tags are you specifying?  Certain combinations don't seem to return anything sensible.
  FWIW in NetSurf I do this, which seems to work in 4.1:
  		id = p96BestModeIDTags(P96BIDTAG_NominalWidth,option_window_screen_width, 					P96BIDTAG_NominalHeight,option_window_screen_height, 					P96BIDTAG_Depth,32);
  I found BestModeID() in graphics.library didn't like 32-bit modes, but that might be me passing the wrong things (filtering out p96 modes or something) 
                        
             
            
                                      |