Ticket #10390: 0001-fix-modeline-being-read-incorrectly.patch

File 0001-fix-modeline-being-read-incorrectly.patch, 1.3 KB (added by gordonjcp, 6 years ago)

Patch to fix screenmode

  • src/bin/screenmode/screenmode.cpp

    From d69d179f0acb70085e26fe182ca29952d687594e Mon Sep 17 00:00:00 2001
    From: Gordon JC Pearce <gordonjcp@gjcp.net>
    Date: Wed, 8 Jan 2014 23:17:04 +0000
    Subject: [PATCH] fix modeline being read incorrectly
    
    ---
     src/bin/screenmode/screenmode.cpp | 8 ++++----
     1 file changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/src/bin/screenmode/screenmode.cpp b/src/bin/screenmode/screenmode.cpp
    index f3127a1..c25e128 100644
    a b main(int argc, char** argv)  
    188188            mode.timing.h_sync_start = strtol(argv[optind + 2], NULL, 0);
    189189            mode.timing.h_sync_end = strtol(argv[optind + 3], NULL, 0);
    190190            mode.timing.h_total = strtol(argv[optind + 4], NULL, 0);
    191             mode.timing.h_display = strtol(argv[optind + 5], NULL, 0);
    192             mode.timing.h_sync_start = strtol(argv[optind + 6], NULL, 0);
    193             mode.timing.h_sync_end = strtol(argv[optind + 7], NULL, 0);
    194             mode.timing.h_total = strtol(argv[optind + 8], NULL, 0);
     191            mode.timing.v_display = strtol(argv[optind + 5], NULL, 0);
     192            mode.timing.v_sync_start = strtol(argv[optind + 6], NULL, 0);
     193            mode.timing.v_sync_end = strtol(argv[optind + 7], NULL, 0);
     194            mode.timing.v_total = strtol(argv[optind + 8], NULL, 0);
    195195            mode.timing.flags = 0;
    196196            mode.space = B_RGB32;
    197197