fCurrentSettings
BFile* fCurrentSettings;
fCurrentSettings, interface);
fCurrentSettings(NULL),
if (fCurrentSettings != NULL)
fCurrentSettings->ReleaseReference();
if (fCurrentSettings != NULL)
fCurrentSettings->ReleaseReference();
fCurrentSettings = settings;
fCurrentSettings->AcquireReference();
Settings* fCurrentSettings;
fCurrentSettings = &prefs;
fCurrentSettings = NULL;
ASSERT(fCurrentSettings && fCurrentSettings->InitCheck() == B_OK);
fCurrentSettings->Write(buffer, strlen(buffer));
fCurrentSettings.pickeddevice = bdaddrUtils::NullAddress();
fCurrentSettings.localdeviceclass = DeviceClass();
fCurrentSettings.policy = 0;
fCurrentSettings.inquirytime = 15;
fCurrentSettings.pickeddevice = pickeddevice;
fCurrentSettings.localdeviceclass = localdeviceclass;
fCurrentSettings.policy = policy;
fCurrentSettings.inquirytime = inquirytime;
&fCurrentSettings.localdeviceclass, sizeof(DeviceClass));
fSettingsMessage.SetValue("BDAddress", B_RAW_TYPE, &fCurrentSettings.pickeddevice,
fSettingsMessage.SetValue("Policy", fCurrentSettings.policy);
fSettingsMessage.SetValue("InquiryTime", fCurrentSettings.inquirytime);
{ return fCurrentSettings.pickeddevice; }
{ return fCurrentSettings.localdeviceclass; }
{ return fCurrentSettings.policy; }
{ return fCurrentSettings.inquirytime; }
BTSetting fCurrentSettings;
fInitialSettings = fCurrentSettings;
fCurrentSettings.enabled = enabled;
fCurrentSettings.automatic = automatic;
fCurrentSettings.size = size;
fCurrentSettings.volume = volume;
{ return fCurrentSettings.enabled; }
{ return fCurrentSettings.automatic; }
off_t SwapSize() const { return fCurrentSettings.size; }
dev_t SwapVolume() { return fCurrentSettings.volume; }
SwapSettings fCurrentSettings;
if ((window->fOffscreen != 0) && (window->fCurrentSettings.display == DISPLAY_BITMAP))
fOffwindowButton->SetHighColor(fCurrentSettings.back_color);
value = (fCurrentSettings.star_density*100 + STAR_DENSITY_MAX/2) / STAR_DENSITY_MAX;
sprintf(word, "%3.1f", fCurrentSettings.refresh_rate + 0.05);
colorControl->SetValue(fCurrentSettings.back_color);
slider->SetValue(fCurrentSettings.star_density);
slider->SetValue((int32)(1000 * log(fCurrentSettings.refresh_rate / REFRESH_RATE_MIN) /
if (fCurrentSettings.display == DISPLAY_BITMAP)
if (fps <= fCurrentSettings.refresh_rate) {
load = (100.0*fCurrentSettings.refresh_rate)/fps + 0.05;
frame_rate = fCurrentSettings.refresh_rate + 0.05;
if (fCurrentSettings.display == DISPLAY_BITMAP)
if (fCurrentSettings.fullscreen_mode != new_set.fullscreen_mode) {
if (fCurrentSettings.fullscreen_mode == WINDOW_MODE)
fPreviousFullscreenMode = fCurrentSettings.fullscreen_mode;
if (fCurrentSettings.fullscreen_mode == WINDOW_MODE)
if (fCurrentSettings.refresh_rate != new_set.refresh_rate) {
fCurrentSettings.refresh_rate = new_set.refresh_rate;
fInstantLoad->step = (int32)((fCurrentSettings.refresh_rate+6.0)/12.0);
if (fCurrentSettings.animation != ANIMATION_OFF)
if (fCurrentSettings.colors[i] != new_set.colors[i]) {
if (new_set.special != fCurrentSettings.special)
if (new_set.display != fCurrentSettings.display) {
fChartView->SetHighColor(fCurrentSettings.back_color);
if (new_set.animation != fCurrentSettings.animation) {
if (new_set.space_model != fCurrentSettings.space_model) {
if ((new_set.back_color.red != fCurrentSettings.back_color.red) ||
(new_set.back_color.green != fCurrentSettings.back_color.green) ||
(new_set.back_color.blue != fCurrentSettings.back_color.blue)) {
fCurrentSettings.back_color = new_set.back_color;
if (new_set.star_density != fCurrentSettings.star_density) {
fCurrentSettings.star_density = new_set.star_density;
if (new_set.depth != fCurrentSettings.depth) {
if ((new_set.width != fCurrentSettings.width) || (new_set.height != fCurrentSettings.height)) {
fCurrentSettings.Set(&new_set);
color = screen.IndexForColor(fCurrentSettings.back_color);
color = ((uint8)fCurrentSettings.back_color.red >> red_divide_shift) << red_shift;
color |= ((uint8)fCurrentSettings.back_color.green >> green_divide_shift) << green_shift;
color |= ((uint8)fCurrentSettings.back_color.blue >> blue_divide_shift) << blue_shift;
color |= ((uint8)fCurrentSettings.back_color.alpha >> alpha_divide_shift) << alpha_shift;
if (w->fCurrentSettings.display == DISPLAY_BITMAP) {
else if (w->fCurrentSettings.display == DISPLAY_DIRECT) {
if (w->fCurrentSettings.display != DISPLAY_OFF) {
switch (fCurrentSettings.animation) {
if (fCurrentSettings.special == SPECIAL_COMET)
switch (fCurrentSettings.special) {
if (fCurrentSettings.second_thread) {
fBitmapBuffer.buffer_width = fCurrentSettings.width;
fBitmapBuffer.buffer_height = fCurrentSettings.height;
SetBitmapClipping(fCurrentSettings.width, fCurrentSettings.height);
if (fCurrentSettings.display == DISPLAY_DIRECT) {
fCurrentSettings.colors[i] = false;
fCurrentSettings.colors[1] = true;
fCurrentSettings.colors[2] = true;
fCurrentSettings.colors[3] = true;
fCurrentSettings.fullscreen_mode = WINDOW_MODE;
fCurrentSettings.special = SPECIAL_NONE;
fCurrentSettings.display = DISPLAY_OFF;
fCurrentSettings.animation = ANIMATION_OFF;
fCurrentSettings.back_color.red = 0;
fCurrentSettings.back_color.green = 0;
fCurrentSettings.back_color.blue = 0;
fCurrentSettings.back_color.alpha = 255;
fCurrentSettings.star_density = STAR_DENSITY_DEFAULT;
fCurrentSettings.refresh_rate = REFRESH_RATE_DEFAULT;
fCurrentSettings.depth = screen.ColorSpace();
fCurrentSettings.width = (int32)frame.right+1-LEFT_WIDTH;
fCurrentSettings.height = (int32)frame.bottom+1-TOP_LEFT_LIMIT;
fNextSettings.Set(&fCurrentSettings);
fStars.count = fCurrentSettings.star_density;
SetGeometry(fCurrentSettings.width, fCurrentSettings.height);
fDirectBuffer.buffer_width = fCurrentSettings.width;
fDirectBuffer.buffer_height = fCurrentSettings.height;
setting fCurrentSettings;