diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-08 20:16:29 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-08 20:16:29 -0600 |
commit | 511779841007afca5231e6c69e996eba0295eaae (patch) | |
tree | b730d389a8ece9421712ed1fc75ae81459d4ee0f /krandr/randr.cpp | |
parent | 5f99a2718025c4f2fbef86a450423a9c61e297f9 (diff) | |
download | tdelibs-511779841007afca5231e6c69e996eba0295eaae.tar.gz tdelibs-511779841007afca5231e6c69e996eba0295eaae.zip |
Fix krandr crashes and uninitialized variables
Work around kcmshell minimum size problem by using icon mode instead of plain page mode in the kcmshell janus widget
Diffstat (limited to 'krandr/randr.cpp')
-rw-r--r-- | krandr/randr.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/krandr/randr.cpp b/krandr/randr.cpp index 3a8e77169..2da9b4520 100644 --- a/krandr/randr.cpp +++ b/krandr/randr.cpp @@ -40,6 +40,45 @@ #undef INT32 #include <X11/extensions/Xrandr.h> +SingleScreenData::SingleScreenData() +{ +TQString screenFriendlyName; + generic_screen_detected = false; + screen_connected = false; + + current_resolution_index = 0; + current_refresh_rate_index = 0; + current_color_depth_index = 0; + + gamma_red = 0.0; + gamma_green = 0.0; + gamma_blue = 0.0; + + current_rotation_index = 0; + current_orientation_mask = 0; + has_x_flip = false; + has_y_flip = false; + supports_transformations = false; + + is_primary = false; + is_extended = false; + absolute_x_position = 0; + absolute_y_position = 0; + current_x_pixel_count = 0; + current_y_pixel_count = 0; + + has_dpms = false; + enable_dpms = false; + dpms_standby_delay = 0; + dpms_suspend_delay = 0; + dpms_off_delay = 0; +} + +SingleScreenData::~SingleScreenData() +{ + // +} + class RandRScreenPrivate { public: |