~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/arch/win32/statusbar.c

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.1.7 upstream) (9.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090331003715-i5yisvcfv7mgz3eh
Tags: 2.1.dfsg-1
* New major upstream release (closes: #495937).
* Add desktop files (closes: #501181).

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
#include "datasette.h"
35
35
#include "drive.h"
 
36
#include "intl.h"
36
37
#include "lib.h"
37
38
#include "res.h"
38
39
#include "resources.h"
170
171
                               status_hwnd[number_of_status_windows],
171
172
                               (HMENU)IDC_SLIDER,
172
173
                               NULL,NULL);
 
174
 
 
175
    resources_get_int("SoundVolume", &res_val);
 
176
    SendMessage(slider_hwnd[number_of_status_windows], TBM_SETPOS, 1, 100 - res_val);
 
177
 
173
178
    /* Max Steps */
174
179
    SendMessage(slider_hwnd[number_of_status_windows], TBM_SETRANGEMAX, 1, 100);
175
180
 
179
184
    SetStatusWindowParts(status_hwnd[number_of_status_windows]);
180
185
 
181
186
    number_of_status_windows++;
182
 
 
183
 
    resources_get_int("SoundVolume", &res_val);
184
 
    statusbar_display_volume(res_val);
185
187
}
186
188
 
187
189
void statusbar_destroy(void)
476
478
            led.top = part_top + 22;
477
479
            led.bottom = part_top + 38;
478
480
 
479
 
            DrawText(hDC, translate_text(IDS_JOYSTICK), -1, &led, 0);
 
481
            DrawText(hDC, translate_text(IDS_JOYSTICK_C), -1, &led, 0);
480
482
 
481
483
            for (joynum = 1; joynum <= 2; joynum ++) {
482
484
 
559
561
        slider_pos = SendMessage(slider_hwnd[window_index], TBM_GETPOS, 0, 0);
560
562
        resources_set_int("SoundVolume", 100 - slider_pos);
561
563
 
562
 
        if (nmhdr->code == NM_RELEASEDCAPTURE)
 
564
        if (nmhdr->code == (UINT)NM_RELEASEDCAPTURE)
563
565
            SetFocus(window);
564
566
 
565
 
        if (nmhdr->code == NM_CUSTOMDRAW) {
 
567
        if (nmhdr->code == (UINT)NM_CUSTOMDRAW) {
566
568
            NMCUSTOMDRAW *lpNMCustomDraw = (NMCUSTOMDRAW*)lparam;
567
569
#ifndef CDIS_FOCUS
568
570
#define CDIS_FOCUS 16