Diff for /np2/win9x/dialog/d_bmp.cpp between versions 1.2 and 1.3

version 1.2, 2003/10/21 11:22:05 version 1.3, 2003/10/29 21:35:58
Line 38  static const char *bmpui_filter[3] = { Line 38  static const char *bmpui_filter[3] = {
   
 void dialog_font(HWND hWnd) {  void dialog_font(HWND hWnd) {
   
 const char      *p;          char    path[MAX_PATH];
   
         p = dlgs_selectfile(hWnd, &fontui, np2cfg.fontfile, NULL, 0, NULL);          file_cpyname(path, np2cfg.fontfile, sizeof(path));
         if ((p != NULL) && (font_load(p, FALSE))) {          if ((dlgs_selectfile(hWnd, &fontui, path, sizeof(path), NULL)) &&
                   (font_load(path, FALSE))) {
                 gdcs.textdisp |= GDCSCRN_ALLDRAW2;                  gdcs.textdisp |= GDCSCRN_ALLDRAW2;
                 milstr_ncpy(np2cfg.fontfile, p, sizeof(np2cfg.fontfile));                  milstr_ncpy(np2cfg.fontfile, path, sizeof(np2cfg.fontfile));
                 sysmng_update(SYS_UPDATECFG);                  sysmng_update(SYS_UPDATECFG);
         }          }
 }  }
Line 52  void dialog_writebmp(HWND hWnd) { Line 53  void dialog_writebmp(HWND hWnd) {
   
         SCRNBMP bmp;          SCRNBMP bmp;
         FILESEL bmpui;          FILESEL bmpui;
 const char      *p;          char    path[MAX_PATH];
         FILEH   fh;          FILEH   fh;
   
         bmp = scrnbmp();          bmp = scrnbmp();
Line 61  const char *p; Line 62  const char *p;
                 bmpui.ext = str_bmp;                  bmpui.ext = str_bmp;
                 bmpui.filter = bmpui_filter[bmp->type];                  bmpui.filter = bmpui_filter[bmp->type];
                 bmpui.defindex = 1;                  bmpui.defindex = 1;
                 p = dlgs_selectwritenum(hWnd, &bmpui, bmpui_file,                  file_cpyname(path, bmpfilefolder, sizeof(path));
                                                                                 bmpfilefolder, sizeof(bmpfilefolder));                  file_cutname(path);
                 if (p) {                  file_catname(path, bmpui_file, sizeof(path));
                         fh = file_create(p);                  if (dlgs_selectwritenum(hWnd, &bmpui, path, sizeof(path))) {
                           file_cpyname(bmpfilefolder, path, sizeof(bmpfilefolder));
                           sysmng_update(SYS_UPDATEOSCFG);
                           fh = file_create(path);
                         if (fh != FILEH_INVALID) {                          if (fh != FILEH_INVALID) {
                                 file_write(fh, bmp->ptr, bmp->size);                                  file_write(fh, bmp->ptr, bmp->size);
                                 file_close(fh);                                  file_close(fh);

Removed from v.1.2  
changed lines
  Added in v.1.3


RetroPC.NET-CVS <cvs@retropc.net>