@@ -302,7 +302,7 @@ SVMenuNode *Tesseract::build_menu_new() {
302
302
* Redisplay page
303
303
*/
304
304
void Tesseract::do_re_display (
305
- BOOL8 (tesseract::Tesseract::*word_painter)(PAGE_RES_IT* pr_it)) {
305
+ bool (tesseract::Tesseract::* word_painter)(PAGE_RES_IT* pr_it)) {
306
306
int block_count = 1 ;
307
307
308
308
image_win->Clear ();
@@ -710,7 +710,7 @@ void show_point(PAGE_RES* page_res, float x, float y) {
710
710
#endif // GRAPHICS_DISABLED
711
711
namespace tesseract {
712
712
#ifndef GRAPHICS_DISABLED
713
- BOOL8 Tesseract:: word_blank_and_set_display(PAGE_RES_IT* pr_it) {
713
+ bool Tesseract::word_blank_and_set_display (PAGE_RES_IT* pr_it) {
714
714
pr_it->word ()->word ->bounding_box ().plot (image_win, ScrollView::BLACK,
715
715
ScrollView::BLACK);
716
716
return word_set_display (pr_it);
@@ -722,7 +722,7 @@ BOOL8 Tesseract:: word_blank_and_set_display(PAGE_RES_IT* pr_it) {
722
722
*
723
723
* Normalize word and display in word window
724
724
*/
725
- BOOL8 Tesseract::word_bln_display (PAGE_RES_IT* pr_it) {
725
+ bool Tesseract::word_bln_display (PAGE_RES_IT* pr_it) {
726
726
WERD_RES* word_res = pr_it->word ();
727
727
if (word_res->chopped_word == nullptr ) {
728
728
// Setup word normalization parameters.
@@ -744,7 +744,7 @@ BOOL8 Tesseract::word_bln_display(PAGE_RES_IT* pr_it) {
744
744
color = WERD::NextColor (color);
745
745
}
746
746
bln_word_window_handle ()->Update ();
747
- return TRUE ;
747
+ return true ;
748
748
}
749
749
750
750
@@ -754,7 +754,7 @@ BOOL8 Tesseract::word_bln_display(PAGE_RES_IT* pr_it) {
754
754
*
755
755
* Display a word according to its display modes
756
756
*/
757
- BOOL8 Tesseract::word_display (PAGE_RES_IT* pr_it) {
757
+ bool Tesseract::word_display (PAGE_RES_IT* pr_it) {
758
758
WERD_RES* word_res = pr_it->word ();
759
759
WERD* word = word_res->word ;
760
760
TBOX word_bb; // word bounding box
@@ -906,7 +906,7 @@ BOOL8 Tesseract::word_display(PAGE_RES_IT* pr_it) {
906
906
(ScrollView::Color)((int32_t ) editor_image_word_bb_color),
907
907
(ScrollView::Color)((int32_t )
908
908
editor_image_word_bb_color));
909
- return TRUE ;
909
+ return true ;
910
910
}
911
911
#endif // GRAPHICS_DISABLED
912
912
@@ -915,10 +915,10 @@ BOOL8 Tesseract::word_display(PAGE_RES_IT* pr_it) {
915
915
*
916
916
* Dump members to the debug window
917
917
*/
918
- BOOL8 Tesseract::word_dumper (PAGE_RES_IT* pr_it) {
918
+ bool Tesseract::word_dumper (PAGE_RES_IT* pr_it) {
919
919
if (pr_it->block ()->block != nullptr ) {
920
920
tprintf (" \n Block data...\n " );
921
- pr_it->block ()->block ->print (nullptr , FALSE );
921
+ pr_it->block ()->block ->print (nullptr , false );
922
922
}
923
923
tprintf (" \n Row data...\n " );
924
924
pr_it->row ()->row ->print (nullptr );
@@ -930,7 +930,7 @@ BOOL8 Tesseract::word_dumper(PAGE_RES_IT* pr_it) {
930
930
tprintf (" Current blamer debug: %s\n " ,
931
931
word_res->blamer_bundle ->debug ().string ());
932
932
}
933
- return TRUE ;
933
+ return true ;
934
934
}
935
935
936
936
#ifndef GRAPHICS_DISABLED
@@ -939,7 +939,7 @@ BOOL8 Tesseract::word_dumper(PAGE_RES_IT* pr_it) {
939
939
*
940
940
* Display word according to current display mode settings
941
941
*/
942
- BOOL8 Tesseract::word_set_display (PAGE_RES_IT* pr_it) {
942
+ bool Tesseract::word_set_display (PAGE_RES_IT* pr_it) {
943
943
WERD* word = pr_it->word ()->word ;
944
944
word->set_display_flag (DF_BOX, word_display_mode.bit (DF_BOX));
945
945
word->set_display_flag (DF_TEXT, word_display_mode.bit (DF_TEXT));
0 commit comments