resolution
void SetResolutionID(int32 resolution);
JobData::SetResolutionID(int32 resolution)
fResolutionID = resolution;
status_t set_screen_space(int32 index, uint32 resolution,
int clock_getres(clockid_t clockID, struct timespec* resolution);
uint16 resolution;
round(uint16 value, uint16 resolution)
return value / resolution * resolution;
syncEnd = round(syncStart + syncLength, constraints.resolution);
syncStart = round(syncStart, constraints.resolution);
display = round(display, constraints.resolution);
total = round(total, constraints.resolution);
BDiscreteParameter *resolution = options1->MakeDiscreteParameter(
resolution->AddItem(6, "768x576");
resolution->AddItem(5, "720x576");
resolution->AddItem(4, "720x480");
resolution->AddItem(0, "640x480");
resolution->AddItem(3, "480x360");
resolution->AddItem(1, "320x240");
resolution->AddItem(2, "160x120");
int resolution;
resolution = max_c(x, y);
resolution, resolution);
int32 resolution;
resolution = fOriginalResolution << shift;
resolution = fOriginalResolution >> -shift;
_UpdateResolution(resolution);
int32 resolution;
if (message->FindInt32("resolution", &resolution) != B_OK)
_UpdateResolution(resolution, false);
int32 resolution, bigtime_t toTime,
int32 resolution = fDrawResolution;
resolution *= 2;
resolution /= 2;
_UpdateResolution(resolution);
uint32 resolution = fDrawResolution;
resolution--;
bigtime_t timeStep = RefreshInterval() * resolution;
ActivityView::_UpdateResolution(int32 resolution, bool broadcast)
if (resolution < 1)
resolution = 1;
if (resolution > 128)
resolution = 128;
if (resolution == fDrawResolution)
update.AddInt32("resolution", resolution);
fDrawResolution = resolution;
ViewHistory::Update(DataHistory* history, int32 width, int32 resolution,
|| fResolution != resolution
fResolution = resolution;
void _UpdateResolution(int32 resolution,
void resolution(unsigned dpi);
unsigned resolution() const { return m_resolution; }
BMenuField* resolution = new BMenuField("resolution", "Resolution:", fResolution);
settingsLayout->AddItem(resolution->CreateLabelLayoutItem(), 0, 2);
settingsLayout->AddItem(resolution->CreateMenuBarLayoutItem(), 1, 2);
const ResolutionCap* resolution = static_cast<const ResolutionCap*>(
ASSERT(resolution != NULL);
if (resolution != NULL) {
fJobData->SetXres(resolution->fXResolution);
fJobData->SetYres(resolution->fYResolution);
fJobData->SetResolutionID(resolution->ID());
BString resolution;
resolution << B_TRANSLATE("Resolution: ")
fResolutionView->SetText(resolution.String());
clock_getres(clockid_t clockID, struct timespec* resolution)
if (resolution != NULL) {
resolution->tv_sec = 0;
resolution->tv_nsec = 1000;