Skip to content

Commit

Permalink
Replace old workaround with new workaround (lape)
Browse files Browse the repository at this point in the history
ocr_FilterUpTextByCharacteristics now uses TMufasaBitmap.
  • Loading branch information
MerlijnWajer committed Jul 5, 2012
1 parent f37c35a commit 9023976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Units/MMLAddon/LPInc/Wrappers/lp_ocr.inc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ end;

procedure Lape_FilterUpTextByCharacteristics(const Params: PParamArray); lape_extdecl
begin
ps_FilterUpTextByCharacteristics(ps_GetMufasaBitmap(PInteger(Params^[0])^));
ps_FilterUpTextByCharacteristics(TMufasaBitmap(Params^[0]^));
end;

procedure Lape_SetUpTextFilter(const Params: PParamArray); lape_extdecl
Expand Down
2 changes: 1 addition & 1 deletion Units/MMLAddon/LPInc/lpexportedmethods.inc
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ AddGlobalFunc('function GetTextAtEx(const xs,ys,xe,ye, minvspacing, maxvspacing,
//AddGlobalFunc('function LoadSystemFont(const SysFont: TFont; const FontName: string): boolean', @Lape_LoadSystemFont);
AddGlobalFunc('function LoadFont(const FontName: string; shadow: boolean): boolean', @Lape_LoadFont);
AddGlobalFunc('function FreeFont(const FontName: string): boolean', @Lape_FreeFont);
AddGlobalFunc('procedure ocr_FilterUpTextByCharacteristics(bmp: Integer);', @Lape_FilterUpTextByCharacteristics);
AddGlobalFunc('procedure ocr_FilterUpTextByCharacteristics(bmp: TMufasaBitmap);', @Lape_FilterUpTextByCharacteristics);
AddGlobalFunc('procedure SetUpTextFilter(filterdata: TOcrFilterDataArray);', @Lape_SetUpTextFilter);
AddGlobalFunc('procedure ResetUpTextFilter;', @Lape_ResetUpTextFilter);

Expand Down

0 comments on commit 9023976

Please sign in to comment.