home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 2 / DATAFILE_PDCD2.iso / utilities2 / desklib / Libraries / Handler / c / ModeChange < prev    next >
Encoding:
Text File  |  1993-06-28  |  565 b   |  23 lines

  1. #include "Desklib:Wimp.h"
  2. #include "Desklib:Screen.h"
  3. #include "Desklib:Window.h"
  4.  
  5.  
  6. extern BOOL Handler_ModeChange(event_pollblock *event, void *handle)
  7. {
  8.   wimp_point old_eig = screen_eig;
  9.  
  10.   Screen_CacheModeInfo();
  11.  
  12.   /*  If the screen resolution in pixels/inch has changed, then re-get all
  13.    *  of the outline fonts used in windows.
  14.    *  (This is necessary when changing between some screen resolutions, e.g.
  15.    *  mode 12 <-> 9, 12 <-> 20, etc)
  16.    */
  17.   if (old_eig.y != screen_eig.y || old_eig.x != screen_eig.x)
  18.     Window_ModeChange();
  19.  
  20.   return(FALSE);
  21. }
  22.  
  23.