Custom Query (518 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (25 - 27 of 518)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Ticket Owner Reporter Resolution Summary
#63 StevenHL Gregg Young fixed User bitmaps with more than 16 colors in their palette fail to load in toolbar
Description

I tried to load David's new unlock.bmp by defining a new button on the toolbar and installing the bitmap as a "user-defined bitmap". The button always comes up as a text button. If I change the color palette to 16 colors the bitmap works. If I compile it into the resources with the original palette it works. the code that is failing is below. I don't see what is going wrong.

/* We now position the stream on the color table information...............*/ rc = fseek(File,ulOffset,SEEK_SET); if(rc)

{

Runtime_Error(pszSrcFile, LINE, "LoadBitmapFromFile?"); goto ExitLoadBMP;

ulOffset is coming from one of the following. In this case it is from case 1.

(case 1 only one sub format in file)

f2 = pbih2->cbFix > sizeof(*pbih); 1.x or 2.x bitmap /* We will need to read the color table. Thus we position the stream...*/ /* so that the next read will read IT. This, of course, depends on the.*/ /* type of the bitmap (old vs new), note that in the NEW case, we can..*/ /* not be certain of the size of the bitmap header.....................*/ ulOffset = (f2) ? sizeof(*pbfh2) + pbih->cbFix - sizeof(*pbih2) :

sizeof(*pbfh);

(case 2 multiple sub formats)

f2 = pbih2->cbFix > sizeof(*pbih); /* as before, we calculate where to position the stream in order to ...*/ /* read the color table information....................................*/ ulOffset = ulOffsetTemp; ulOffset+= (f2) ? sizeof(*pbafh2) + pbih2->cbFix - sizeof(*pbih2):

sizeof(*pbafh);

I know this because I filled the file with doserror checks see attached loadbitmap.c and this is where it fails. The next higher doserror call is immediately before the call to calculate the stream position.

When I load fm2 I get the error at line 222 and then 2 errors at line 66. The second 2 errors are caused by trying to load a bitmap that could not be processed. One in the toolbar and one in the button edit dialog.

code that fails on line 66

--- open the file File = _fsopen(pszFileName,"r",SH_DENYWR); if(!File)

#64 Gregg Young Gregg Young fixed Replace command should leave the commands at the same position in the command list
Description

If the command gets moved it will break the command on the toolbar if it exists. This should happen on replace.

#67 Gregg Young rbri fixed Make directory menu is gone
Description

Hi,

i really like the idea to move the 'Make Directory' menu point out of the Misc submenu to the popup menu. But in some cases the menu is not there: Start FM/2 and open a folder (e.g. c:\) then left click somewhere in the white area. Now no file or subdirectory should be selected. Now right click on the white area. The Popup appears but the 'Make directory' entry is not there. I found this with 3.05 beta7. Maybe there a some other menus that include this submenu and now missing the 'Make Directory' point.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Note: See TracQuery for help on using queries.