Files @ r28671:0fb12922facc
Branch filter:

Location: cpp/openttd-patchpack/source/cmake/FindGrfcodec.cmake

Peter Nelson
Fix #11966: Scrollbar may be incorrect on first opening of text file window. (#11981)

The scrollbar is set up before the true monospace is loaded, so reinitialise the window after loading.
# Autodetect grfcodec and nforenum.
#

find_program(GRFCODEC_EXECUTABLE grfcodec)
find_program(GRFID_EXECUTABLE grfid)
find_program(NFORENUM_EXECUTABLE nforenum)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Grfcodec
    FOUND_VAR GRFCODEC_FOUND
    REQUIRED_VARS
        GRFCODEC_EXECUTABLE
        GRFID_EXECUTABLE
        NFORENUM_EXECUTABLE
)